Show / Hide Table of Contents

    Class Size2D

    A two-dimensional size.

    Inheritance
    Object
    Disposable
    Size2D
    Implements
    IDisposable
    Inherited Members
    Disposable.disposed
    Disposable.Dispose()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Tizen.NUI
    Assembly: Tizen.NUI.dll
    Syntax
    public class Size2D : Disposable, IDisposable

    Constructors

    Size2D()

    The constructor.

    Declaration
    public Size2D()
    API Version
    3

    Size2D(Int32, Int32)

    The constructor.

    Declaration
    public Size2D(int x, int y)
    Parameters
    Type Name Description
    Int32 x

    The x (or width) component.

    Int32 y

    The y (or height) component.

    API Version
    3

    Fields

    swigCMemOwn

    swigCMemOwn

    Declaration
    protected bool swigCMemOwn
    Field Value
    Type Description
    Boolean
    API Version
    3

    Properties

    Height

    The property for the height component of a size.

    Declaration
    public int Height { get; set; }
    Property Value
    Type Description
    Int32
    API Version
    3

    Item[UInt32]

    The array subscript operator.

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

    The subscript index.

    Property Value
    Type Description
    Single

    The float at the given index.

    API Version
    3

    Width

    The property for the width component of a size.

    Declaration
    public int Width { get; set; }
    Property Value
    Type Description
    Int32
    API Version
    3

    Methods

    Dispose(DisposeTypes)

    Dispose.

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type
    Overrides
    Disposable.Dispose(DisposeTypes)
    API Version
    3

    Equals(Object)

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

    Declaration
    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
    Boolean

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

    EqualTo(Size2D)

    Checks equality.
    Utilizes appropriate machine epsilon values.

    Declaration
    public 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 Version
    3

    GetHashCode()

    Gets the the hash code of this Size2D.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32

    The Hash Code.

    Overrides
    Object.GetHashCode()
    API Version
    6

    NotEqualTo(Size2D)

    Checks inequality.
    Utilizes appropriate machine epsilon values.

    Declaration
    public 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 Version
    3

    Operators

    Addition(Size2D, Size2D)

    The addition operator for A+B.

    Declaration
    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.

    API Version
    3

    Division(Size2D, Int32)

    The division operator.

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

    Size for division.

    Int32 arg2

    The integer value to scale the size by.

    Returns
    Type Description
    Size2D

    A size containing the result of the scaling.

    API Version
    3

    Division(Size2D, Size2D)

    The division operator.

    Declaration
    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.

    API Version
    3

    Implicit(Size2D to Vector2)

    The type cast operator, Size2D to Vector2.

    Declaration
    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

    API Version
    3

    Implicit(Vector2 to Size2D)

    The type cast operator, Vector2 to Size2D type.

    Declaration
    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

    API Version
    3

    Multiply(Size2D, Int32)

    The multiplication operator.

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

    Size for multiplication

    Int32 arg2

    The integer value to scale the size.

    Returns
    Type Description
    Size2D

    A size containing the result of the scaling.

    API Version
    3

    Multiply(Size2D, Size2D)

    The multiplication operator.

    Declaration
    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.

    API Version
    3

    Subtraction(Size2D, Size2D)

    The subtraction operator for A-B.

    Declaration
    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.

    API Version
    3

    UnaryNegation(Size2D)

    The unary negation operator.

    Declaration
    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.

    API Version
    3

    Implements

    System.IDisposable
    Back to top Copyright © 2016-2018 Samsung
    Generated by DocFX