Class Size2D
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
A two-dimensional size.
C#Copypublic class Size2D : IDisposable
- Inheritance
-
Size2D
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic Size2D()
API Level: 3
Declaration
C#Copypublic Size2D(int x, int y)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | x | The x (or width) component. |
System.Int32 | y | The y (or height) component. |
API Level: 3
Fields
Declaration
C#Copyprotected bool disposed
Field Value
Type | Description |
---|---|
Boolean |
API Level: 3
Declaration
C#Copyprotected bool swigCMemOwn
Field Value
Type | Description |
---|---|
Boolean |
API Level: 3
Properties
Declaration
C#Copypublic int Height { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Declaration
C#Copypublic float this[uint index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | index | The subscript index. |
Property Value
Type | Description |
---|---|
Single | The float at the given index. |
API Level: 3
Declaration
C#Copypublic int Width { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
API Level: 3
Methods
Declaration
C#Copypublic void Dispose()
API Level: 3
Declaration
C#Copyprotected virtual void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
API Level: 3
Declaration
C#Copypublic bool EqualTo(Size2D rhs)
Parameters
Type | Name | Description |
---|---|---|
Size2D | rhs | The size to test against. |
Returns
Type | Description |
---|---|
Boolean | True if the sizes are equal. |
API Level: 3
Declaration
C#Copyprotected void Finalize()
API Level: 3
Declaration
C#Copypublic bool NotEqualTo(Size2D rhs)
Parameters
Type | Name | Description |
---|---|---|
Size2D | rhs | The size to test against. |
Returns
Type | Description |
---|---|
Boolean | True if the sizes are not equal. |
API Level: 3
Operators
Declaration
C#Copypublic static Size2D operator +(Size2D arg1, Size2D arg2)
Parameters
Type | Name | Description |
---|---|---|
Size2D | arg1 | Size A. |
Size2D | arg2 | Size to assign B. |
Returns
Type | Description |
---|---|
Size2D | A size containing the result of the addition. |
API Level: 3
Declaration
C#Copypublic static Size2D operator /(Size2D arg1, int arg2)
Parameters
Type | Name | Description |
---|---|---|
Size2D | arg1 | Size for division. |
System.Int32 | arg2 | The integer value to scale the size by. |
Returns
Type | Description |
---|---|
Size2D | A size containing the result of the scaling. |
API Level: 3
Declaration
C#Copypublic static Size2D operator /(Size2D arg1, Size2D arg2)
Parameters
Type | Name | Description |
---|---|---|
Size2D | arg1 | Size for division. |
Size2D | arg2 | Size to divide. |
Returns
Type | Description |
---|---|
Size2D | A size containing the result of the division. |
API Level: 3
Declaration
C#Copypublic static implicit operator Vector2(Size2D size)
Parameters
Type | Name | Description |
---|---|---|
Size2D | size | An object of the Size2D type. |
Returns
Type | Description |
---|---|
Vector2 | return a Vector2 instance |
API Level: 3
Declaration
C#Copypublic static implicit operator Size2D(Vector2 vector2)
Parameters
Type | Name | Description |
---|---|---|
Vector2 | vector2 | An object of the Vector2 type. |
Returns
Type | Description |
---|---|
Size2D | return a Size2D instance |
API Level: 3
Declaration
C#Copypublic static Size2D operator *(Size2D arg1, int arg2)
Parameters
Type | Name | Description |
---|---|---|
Size2D | arg1 | Size for multiplication |
System.Int32 | arg2 | The integer value to scale the size. |
Returns
Type | Description |
---|---|
Size2D | A size containing the result of the scaling. |
API Level: 3
Declaration
C#Copypublic static Size2D operator *(Size2D arg1, Size2D arg2)
Parameters
Type | Name | Description |
---|---|---|
Size2D | arg1 | Size for multiplication. |
Size2D | arg2 | Size to multiply. |
Returns
Type | Description |
---|---|
Size2D | A size containing the result of the multiplication. |
API Level: 3
Declaration
C#Copypublic static Size2D operator -(Size2D arg1, Size2D arg2)
Parameters
Type | Name | Description |
---|---|---|
Size2D | arg1 | Size A. |
Size2D | arg2 | Size to subtract B. |
Returns
Type | Description |
---|---|
Size2D | A size containing the result of the subtraction. |
API Level: 3
Declaration
C#Copypublic static Size2D operator -(Size2D arg1)
Parameters
Type | Name | Description |
---|---|---|
Size2D | arg1 | Size for unary negation. |
Returns
Type | Description |
---|---|
Size2D | A size containing the negation. |