Class Size

Definition

Namespace:
Tizen.NUI
Assembly:
Tizen.NUI.dll

A three-dimensional size.

C#
Copy
public class Size : Disposable, IDisposable
Inheritance
object
Size
Implements
System.IDisposable

Constructors

View Source

Size()

The constructor.

Declaration
C#
Copy
public Size()
View Source

Size(float, float, float)

The constructor.

Declaration
C#
Copy
public Size(float x, float y, float z = 0)
Parameters
Type Name Description
float x

The x (or width) component.

float y

The y (or height) component.

float z

The z (or depth) component(optional).

View Source

Size(Size2D)

The constructor.

Declaration
C#
Copy
public Size(Size2D size2d)
Parameters
Type Name Description
Size2D size2d

Size2D with x (width) and y (height).

Fields

View Source

swigCMemOwn

swigCMemOwn.

Declaration
C#
Copy
protected bool swigCMemOwn
Field Value
Type Description
bool

Properties

View Source

Depth

The Depth property for the depth component of size.

Declaration
C#
Copy
public float Depth { get; set; }
Property Value
Type Description
float
View Source

Height

The Height property for the height component of size.

Declaration
C#
Copy
public float Height { get; set; }
Property Value
Type Description
float
View Source

this[uint]

The array subscript operator.

Declaration
C#
Copy
public float this[uint index] { get; }
Parameters
Type Name Description
uint index

Subscript index.

Property Value
Type Description
float

The float at the given index.

View Source

Width

The Width property for the width component of size

Declaration
C#
Copy
public float Width { get; set; }
Property Value
Type Description
float
View Source

Zero

The Zero constant, (0.0f, 0.0f, 0.0f).

Declaration
C#
Copy
public static Size Zero { get; }
Property Value
Type Description
Size

Methods

View Source

Dispose(DisposeTypes)

Dispose.

Declaration
C#
Copy
protected override void Dispose(DisposeTypes type)
Parameters
Type Name Description
DisposeTypes type
Overrides
View Source

Equals(Object)

Determines whether the specified object is equal to the current object.

Declaration
C#
Copy
public override bool Equals(Object obj)
Parameters
Type Name Description
Tizen.System.Object obj

The object to compare with the current object.

Returns
Type Description
bool

true if the specified object is equal to the current object; otherwise, false.

View Source

EqualTo(Size)

Checks equality.
Utilizes appropriate machine epsilon values.

Declaration
C#
Copy
public bool EqualTo(Size rhs)
Parameters
Type Name Description
Size rhs

The size to test against.

Returns
Type Description
bool

True if the sizes are equal.

View Source

GetHashCode()

Gets the the hash code of this Size.

Declaration
C#
Copy
public override int GetHashCode()
Returns
Type Description
int

The Hash Code.

Overrides
object.GetHashCode()
View Source

NotEqualTo(Size)

Checks inequality.
Utilizes appropriate machine epsilon values.

Declaration
C#
Copy
public bool NotEqualTo(Size rhs)
Parameters
Type Name Description
Size rhs

The size to test against.

Returns
Type Description
bool

True if the sizes are not equal.

Operators

View Source

operator +(Size, Size)

The addition operator for A+B.

Declaration
C#
Copy
public 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.

View Source

operator /(Size, float)

The division operator.

Declaration
C#
Copy
public static Size operator /(Size arg1, float arg2)
Parameters
Type Name Description
Size arg1

Size for division.

float arg2

The float value to scale the size by.

Returns
Type Description
Size

A Size containing the result of the scaling.

View Source

operator /(Size, Size)

The division operator.

Declaration
C#
Copy
public 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.

View Source

implicit operator Vector3(Size)

The type cast operator, Size to Vector3.

Declaration
C#
Copy
public static implicit operator Vector3(Size size)
Parameters
Type Name Description
Size size

The object of size type.

Returns
Type Description
Vector3
View Source

implicit operator Size(Vector3)

The type cast operator, Vector3 to Size type.

Declaration
C#
Copy
public static implicit operator Size(Vector3 vec)
Parameters
Type Name Description
Vector3 vec

The object of Vector3 type.

Returns
Type Description
Size
View Source

operator *(Size, float)

The multiplication operator.

Declaration
C#
Copy
public static Size operator *(Size arg1, float arg2)
Parameters
Type Name Description
Size arg1

Size for multiplication.

float arg2

The float value to scale the size.

Returns
Type Description
Size

A size containing the result of the scaling.

View Source

operator *(Size, Size)

The multiplication operator.

Declaration
C#
Copy
public 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.

View Source

operator -(Size, Size)

The subtraction operator for A-B.

Declaration
C#
Copy
public 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.

View Source

operator -(Size)

The unary negation operator.

Declaration
C#
Copy
public static Size operator -(Size arg1)
Parameters
Type Name Description
Size arg1

Size for unary negation.

Returns
Type Description
Size

A size containing the negation.

Implements

System.IDisposable