Struct Rect

    Definition

    Namespace:
    ElmSharp
    Assembly:
    ElmSharp.dll

    The Rect is a struct that represents the rectangular space.

    public struct Rect : IEquatable<Rect>
    Implements
    System.IEquatable<T><Rect>

    Constructors

    View Source

    Rect(int, int, int, int)

    Creates and initializes a new instance of the Rect class.

    Declaration
    public Rect(int x, int y, int w, int h)
    Parameters
    Type Name Description
    int x

    X-axis value.

    int y

    Y-axis value.

    int w

    Width value.

    int h

    Height value.

    Properties

    View Source

    Bottom

    Gets the extent along the Y-axis.

    Declaration
    public int Bottom { get; }
    Property Value
    Type Description
    int
    View Source

    Height

    Gets or sets the height of this rectangle.

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

    Left

    Gets the position of this rectangle on the X-axis.

    Declaration
    public int Left { get; }
    Property Value
    Type Description
    int
    View Source

    Location

    Gets the point defined by Rectangle.Left and Rectangle.Top.

    Declaration
    public Point Location { get; }
    Property Value
    Type Description
    Point
    View Source

    Right

    Gets the extent along the X-axis.

    Declaration
    public int Right { get; }
    Property Value
    Type Description
    int
    View Source

    Size

    Gets the extent of the rectangle along its X-axis and Y-axis.

    Declaration
    public Size Size { get; }
    Property Value
    Type Description
    Size
    View Source

    Top

    Gets the position of this rectangle on the Y-axis.

    Declaration
    public int Top { get; }
    Property Value
    Type Description
    int
    View Source

    Width

    Gets or sets the width of this rectangle.

    Declaration
    public int Width { get; set; }
    Property Value
    Type Description
    int
    View Source

    X

    Gets or sets the position of this rectangle on the X-axis.

    Declaration
    public int X { get; set; }
    Property Value
    Type Description
    int
    View Source

    Y

    Gets or sets the position of this rectangle on the Y-axis.

    Declaration
    public int Y { get; set; }
    Property Value
    Type Description
    int

    Methods

    View Source

    Equals(Rect)

    Indicates whether this instance and a Rect object are equal.

    Declaration
    public bool Equals(Rect other)
    Parameters
    Type Name Description
    Rect other

    The Rect to compare with the current instance.

    Returns
    Type Description
    bool

    true if the object and this instance are of the same type and represent the same value, otherwise, false

    View Source

    Equals(object)

    Indicates whether this instance and a specified object are equal.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current instance.

    Returns
    Type Description
    bool

    true if the object and this instance are of the same type and represent the same value, otherwise false.

    Overrides
    System.ValueType.Equals(object)
    View Source

    GetHashCode()

    Gets the hash code.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    The hash code.

    Overrides
    System.ValueType.GetHashCode()
    View Source

    ToString()

    A human-readable representation of Tizen.UI.Rect.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    The string is formatted as "{{X={0} Y={1} Width={2} Height={3}}}".

    Overrides
    System.ValueType.ToString()

    Operators

    View Source

    operator ==(Rect, Rect)

    Whether both Tizen.UI.Rectangle's are equal.

    Declaration
    public static bool operator ==(Rect r1, Rect r2)
    Parameters
    Type Name Description
    Rect r1

    A Tizen.UI.Rectangle on the left hand side.

    Rect r2

    A Tizen.UI.Rectangle on the right hand side.

    Returns
    Type Description
    bool

    True if both Tizen.UI.Rectangle's have equal values.

    View Source

    operator !=(Rect, Rect)

    Whether both Tizen.UI.Rectangle's are not equal.

    Declaration
    public static bool operator !=(Rect r1, Rect r2)
    Parameters
    Type Name Description
    Rect r1

    A Tizen.UI.Rectangle on the left hand side.

    Rect r2

    A Tizen.UI.Rectangle on the right hand side.

    Returns
    Type Description
    bool

    True if both Tizen.UI.Rectangle's do not have equal values.

    Implements

    System.IEquatable<T>
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX