Class Size2D

Definition

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

A two-dimensional size.

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

Constructors

View Source

Size2D()

The constructor.

Declaration
C#
Copy
public Size2D()
View Source

Size2D(int, int)

The constructor.

Declaration
C#
Copy
public Size2D(int x, int y)
Parameters
Type Name Description
int x

The x (or width) component.

int y

The y (or height) component.

Fields

View Source

swigCMemOwn

swigCMemOwn

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

Properties

View Source

Height

The property for the height component of a size.

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

this[uint]

The array subscript operator.

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

The subscript index.

Property Value
Type Description
float

The float at the given index.

View Source

Width

The property for the width component of a size.

Declaration
C#
Copy
public int Width { get; set; }
Property Value
Type Description
int

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(Size2D)

Checks equality.
Utilizes appropriate machine epsilon values.

Declaration
C#
Copy
public bool EqualTo(Size2D rhs)
Parameters
Type Name Description
Size2D 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 Size2D.

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

The Hash Code.

Overrides
object.GetHashCode()
View Source

NotEqualTo(Size2D)

Checks inequality.
Utilizes appropriate machine epsilon values.

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

The size to test against.

Returns
Type Description
bool

True if the sizes are not equal.

Operators

View Source

operator +(Size2D, Size2D)

The addition operator for A+B.

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

View Source

operator /(Size2D, int)

The division operator.

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

Size for division.

int arg2

The integer value to scale the size by.

Returns
Type Description
Size2D

A size containing the result of the scaling.

View Source

operator /(Size2D, Size2D)

The division operator.

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

View Source

implicit operator Vector2(Size2D)

The type cast operator, Size2D to Vector2.

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

View Source

implicit operator Size2D(Vector2)

The type cast operator, Vector2 to Size2D type.

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

View Source

operator *(Size2D, int)

The multiplication operator.

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

Size for multiplication

int arg2

The integer value to scale the size.

Returns
Type Description
Size2D

A size containing the result of the scaling.

View Source

operator *(Size2D, Size2D)

The multiplication operator.

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

View Source

operator -(Size2D, Size2D)

The subtraction operator for A-B.

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

View Source

operator -(Size2D)

The unary negation operator.

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

Size for unary negation.

Returns
Type Description
Size2D

A size containing the negation.

Implements

System.IDisposable