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)
Assembly: Tizen.UIExtensions.NUI.dll
Syntax
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
Fields
Zero
Declaration
Field Value
Properties
Bottom
Declaration
public double Bottom { get; }
Property Value
Type |
Description |
System.Double |
|
Center
Declaration
public Point Center { get; }
Property Value
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
Right
Declaration
public double Right { get; }
Property Value
Type |
Description |
System.Double |
|
Size
Declaration
public Size Size { get; set; }
Property Value
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
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
Inflate(Size)
Declaration
public Rect Inflate(Size sz)
Parameters
Type |
Name |
Description |
Size |
sz |
|
Returns
Intersect(Rect)
Declaration
public Rect Intersect(Rect r)
Parameters
Type |
Name |
Description |
Rect |
r |
|
Returns
Intersect(Rect, Rect)
Declaration
public static Rect Intersect(Rect r1, Rect r2)
Parameters
Returns
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
Offset(Point)
Declaration
public Rect Offset(Point dr)
Parameters
Type |
Name |
Description |
Point |
dr |
|
Returns
Round()
Declaration
Returns
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
Union(Rect, Rect)
Declaration
public static Rect Union(Rect r1, Rect r2)
Parameters
Returns
Operators
Equality(Rect, Rect)
Declaration
public static bool operator ==(Rect r1, Rect r2)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Inequality(Rect, Rect)
Declaration
public static bool operator !=(Rect r1, Rect r2)
Parameters
Returns
Type |
Description |
System.Boolean |
|