Show / Hide Table of Contents

    Struct Rect

    Struct defining a rectangle, using doubles.

    Inherited Members
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Tizen.UIExtensions.Common
    Assembly: Tizen.UIExtensions.NUI.dll
    Syntax
    public struct Rect

    Constructors

    Rect(Double, Double, Double, Double)

    Creates a new Rect object with its top left corner at (x, y) and width wide and height tall.

    Declaration
    public Rect(double x, double y, double width, double height)
    Parameters
    Type Name Description
    System.Double x

    The X coordinate of the top left corner.

    System.Double y

    The Y coordinate of the top left corner.

    System.Double width

    The width.

    System.Double height

    The height.

    Rect(Point, Size)

    Declaration
    public Rect(Point loc, Size sz)
    Parameters
    Type Name Description
    Point loc
    Size sz

    Fields

    Zero

    Declaration
    public static Rect Zero
    Field Value
    Type Description
    Rect

    Properties

    Bottom

    Declaration
    public double Bottom { get; }
    Property Value
    Type Description
    System.Double

    Center

    Declaration
    public Point Center { get; }
    Property Value
    Type Description
    Point

    Height

    Declaration
    public double Height { get; set; }
    Property Value
    Type Description
    System.Double

    IsEmpty

    Declaration
    public bool IsEmpty { get; }
    Property Value
    Type Description
    System.Boolean

    Left

    Declaration
    public double Left { get; }
    Property Value
    Type Description
    System.Double

    Location

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

    Right

    Declaration
    public double Right { get; }
    Property Value
    Type Description
    System.Double

    Size

    Declaration
    public Size Size { get; set; }
    Property Value
    Type Description
    Size

    Top

    Declaration
    public double Top { get; }
    Property Value
    Type Description
    System.Double

    Width

    Declaration
    public double Width { get; set; }
    Property Value
    Type Description
    System.Double

    X

    Declaration
    public double X { get; set; }
    Property Value
    Type Description
    System.Double

    Y

    Declaration
    public double Y { get; set; }
    Property Value
    Type Description
    System.Double

    Methods

    Contains(Double, Double)

    Declaration
    public bool Contains(double x, double y)
    Parameters
    Type Name Description
    System.Double x
    System.Double y
    Returns
    Type Description
    System.Boolean

    Contains(Point)

    Declaration
    public bool Contains(Point pt)
    Parameters
    Type Name Description
    Point pt
    Returns
    Type Description
    System.Boolean

    Contains(Rect)

    Declaration
    public bool Contains(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Returns
    Type Description
    System.Boolean

    Deconstruct(out Double, out Double, out Double, out Double)

    Declaration
    public void Deconstruct(out double x, out double y, out double width, out double height)
    Parameters
    Type Name Description
    System.Double x
    System.Double y
    System.Double width
    System.Double height

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    System.ValueType.Equals(System.Object)

    Equals(Rect)

    Declaration
    public bool Equals(Rect other)
    Parameters
    Type Name Description
    Rect other
    Returns
    Type Description
    System.Boolean

    FromLTRB(Double, Double, Double, Double)

    Declaration
    public static Rect FromLTRB(double left, double top, double right, double bottom)
    Parameters
    Type Name Description
    System.Double left
    System.Double top
    System.Double right
    System.Double bottom
    Returns
    Type Description
    Rect

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    System.ValueType.GetHashCode()

    Inflate(Double, Double)

    Declaration
    public Rect Inflate(double width, double height)
    Parameters
    Type Name Description
    System.Double width
    System.Double height
    Returns
    Type Description
    Rect

    Inflate(Size)

    Declaration
    public Rect Inflate(Size sz)
    Parameters
    Type Name Description
    Size sz
    Returns
    Type Description
    Rect

    Intersect(Rect)

    Declaration
    public Rect Intersect(Rect r)
    Parameters
    Type Name Description
    Rect r
    Returns
    Type Description
    Rect

    Intersect(Rect, Rect)

    Declaration
    public static Rect Intersect(Rect r1, Rect r2)
    Parameters
    Type Name Description
    Rect r1
    Rect r2
    Returns
    Type Description
    Rect

    IntersectsWith(Rect)

    Declaration
    public bool IntersectsWith(Rect r)
    Parameters
    Type Name Description
    Rect r
    Returns
    Type Description
    System.Boolean

    Offset(Double, Double)

    Declaration
    public Rect Offset(double dx, double dy)
    Parameters
    Type Name Description
    System.Double dx
    System.Double dy
    Returns
    Type Description
    Rect

    Offset(Point)

    Declaration
    public Rect Offset(Point dr)
    Parameters
    Type Name Description
    Point dr
    Returns
    Type Description
    Rect

    Round()

    Declaration
    public Rect Round()
    Returns
    Type Description
    Rect

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.ValueType.ToString()

    Union(Rect)

    Declaration
    public Rect Union(Rect r)
    Parameters
    Type Name Description
    Rect r
    Returns
    Type Description
    Rect

    Union(Rect, Rect)

    Declaration
    public static Rect Union(Rect r1, Rect r2)
    Parameters
    Type Name Description
    Rect r1
    Rect r2
    Returns
    Type Description
    Rect

    Operators

    Equality(Rect, Rect)

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

    Inequality(Rect, Rect)

    Declaration
    public static bool operator !=(Rect r1, Rect r2)
    Parameters
    Type Name Description
    Rect r1
    Rect r2
    Returns
    Type Description
    System.Boolean
    Back to top Copyright © 2021 Samsung
    Generated by DocFX