Struct ScreenInformation
Definition
- Assembly:
- Tizen.NUI.dll
ScreenInformation is a struct designed to encapsulate the information of screen. It contains three properties as screen name, width and hegiht. The ScreenInformation is especially used to support multiple screen.
public struct ScreenInformation : IEquatable<ScreenInformation>
- Implements
-
IEquatable<><ScreenInformation>
Constructors
View SourceScreenInformation(string, int, int)
The construct with name, width and height for screen.
Declaration
public ScreenInformation(string name, int width, int height)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | |
| int | width | |
| int | height |
Properties
View SourceHeight
Gets or sets the height of the screen.
Declaration
public readonly int Height { get; }
Property Value
| Type | Description |
|---|---|
| int | The height of the screen. |
Name
Gets or sets the name of the screen.
Declaration
public readonly string Name { get; }
Property Value
| Type | Description |
|---|---|
| string | The name of the screen. |
Width
Gets or sets the width of the screen.
Declaration
public readonly int Width { get; }
Property Value
| Type | Description |
|---|---|
| int | The width of the screen. |
Methods
View SourceEquals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Equals(ScreenInformation)
Whether this is equivalent to other.
Declaration
public bool Equals(ScreenInformation other)
Parameters
| Type | Name | Description |
|---|---|---|
| ScreenInformation | other |
Returns
| Type | Description |
|---|---|
| bool |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Operators
View Sourceoperator ==(ScreenInformation, ScreenInformation)
Compares two ScreenInformation for equality.
Declaration
public static bool operator ==(ScreenInformation operand1, ScreenInformation operand2)
Parameters
| Type | Name | Description |
|---|---|---|
| ScreenInformation | operand1 | The first operand object. |
| ScreenInformation | operand2 | The second operand object. |
Returns
| Type | Description |
|---|---|
| bool | True if both are equal, otherwise false. |
operator !=(ScreenInformation, ScreenInformation)
Compares two ScreenInformation for inequality.
Declaration
public static bool operator !=(ScreenInformation operand1, ScreenInformation operand2)
Parameters
| Type | Name | Description |
|---|---|---|
| ScreenInformation | operand1 | The first operand object. |
| ScreenInformation | operand2 | The second operand object. |
Returns
| Type | Description |
|---|---|
| bool | True if both are not equal, otherwise false. |