Class Size
Definition
- Namespace:
- Tizen.NUI
- Assembly:
- Tizen.NUI.dll
- API Level:
- 5
A three-dimensional size.
C#Copypublic class Size : Disposable, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Constructors
Declaration
C#Copypublic Size()
API Level: 5
Declaration
C#Copypublic Size(float x, float y, float z = 0F)
Parameters
Type | Name | Description |
---|---|---|
Single | x | The x (or width) component. |
Single | y | The y (or height) component. |
Single | z | The z (or depth) component(optional). |
API Level: 5
Declaration
C#Copypublic Size(Size2D size2d)
Parameters
Type | Name | Description |
---|---|---|
Size2D | size2d | Size2D with x (width) and y (height). |
API Level: 5
Fields
Declaration
C#Copyprotected bool swigCMemOwn
Field Value
Type | Description |
---|---|
System.Boolean |
API Level: 5
Properties
Declaration
C#Copypublic float Depth { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 5
Declaration
C#Copypublic float Height { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 5
Declaration
C#Copypublic float this[uint index] { get; }
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | index | Subscript index. |
Property Value
Type | Description |
---|---|
Single | The float at the given index. |
API Level: 5
Declaration
C#Copypublic float Width { get; set; }
Property Value
Type | Description |
---|---|
Single |
API Level: 5
Declaration
C#Copypublic static Size Zero { get; }
Property Value
Type | Description |
---|---|
Size |
API Level: 5
Methods
Declaration
C#Copyprotected override void Dispose(DisposeTypes type)
Parameters
Type | Name | Description |
---|---|---|
DisposeTypes | type |
Overrides
API Level: 5
Declaration
C#Copypublic override bool Equals(Object obj)
Parameters
Type | Name | Description |
---|---|---|
Tizen.System.Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
System.Boolean | true if the specified object is equal to the current object; otherwise, false. |
Declaration
C#Copypublic bool EqualTo(Size rhs)
Parameters
Type | Name | Description |
---|---|---|
Size | rhs | The size to test against. |
Returns
Type | Description |
---|---|
System.Boolean | True if the sizes are equal. |
API Level: 5
Declaration
C#Copypublic override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | The Hash Code. |
Overrides
API Level: 6
Declaration
C#Copypublic bool NotEqualTo(Size rhs)
Parameters
Type | Name | Description |
---|---|---|
Size | rhs | The size to test against. |
Returns
Type | Description |
---|---|
System.Boolean | True if the sizes are not equal. |
API Level: 5
Operators
Declaration
C#Copypublic static Size operator +(Size arg1, Size arg2)
Parameters
Type | Name | Description |
---|---|---|
Size | arg1 | Size to assign A. |
Size | arg2 | Size to assign B. |
Returns
Type | Description |
---|---|
Size | A size containing the result of the addition. |
API Level: 5
Declaration
C#Copypublic static Size operator /(Size arg1, float arg2)
Parameters
Type | Name | Description |
---|---|---|
Size | arg1 | Size for division. |
Single | arg2 | The float value to scale the size by. |
Returns
Type | Description |
---|---|
Size | A Size containing the result of the scaling. |
API Level: 5
Declaration
C#Copypublic static Size operator /(Size arg1, Size arg2)
Parameters
Type | Name | Description |
---|---|---|
Size | arg1 | Size for division. |
Size | arg2 | The size to divide. |
Returns
Type | Description |
---|---|
Size | A size containing the result of the division. |
API Level: 5
Declaration
C#Copypublic static implicit operator Vector3(Size size)
Parameters
Type | Name | Description |
---|---|---|
Size | size | The object of size type. |
Returns
Type | Description |
---|---|
Vector3 |
API Level: 5
Declaration
C#Copypublic static implicit operator Size(Vector3 vec)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vec | The object of Vector3 type. |
Returns
Type | Description |
---|---|
Size |
API Level: 5
Declaration
C#Copypublic static Size operator *(Size arg1, float arg2)
Parameters
Type | Name | Description |
---|---|---|
Size | arg1 | Size for multiplication. |
Single | arg2 | The float value to scale the size. |
Returns
Type | Description |
---|---|
Size | A size containing the result of the scaling. |
API Level: 5
Declaration
C#Copypublic static Size operator *(Size arg1, Size arg2)
Parameters
Type | Name | Description |
---|---|---|
Size | arg1 | Size for multiplication. |
Size | arg2 | The size to multiply. |
Returns
Type | Description |
---|---|
Size | A size containing the result of the multiplication. |
API Level: 5
Declaration
C#Copypublic static Size operator -(Size arg1, Size arg2)
Parameters
Type | Name | Description |
---|---|---|
Size | arg1 | Size to subtract A. |
Size | arg2 | Size to subtract B. |
Returns
Type | Description |
---|---|
Size | The size containing the result of the subtraction. |
API Level: 5
Declaration
C#Copypublic static Size operator -(Size arg1)
Parameters
Type | Name | Description |
---|---|---|
Size | arg1 | Size for unary negation. |
Returns
Type | Description |
---|---|
Size | A size containing the negation. |