Struct Eina.Rect
A rectangle in pixel dimensions.
Constructors
Rect(Int32, Int32, Int32, Int32)
Constructor for Rect.
Declaration
public Rect(int X = 0, int Y = 0, int W = 0, int H = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | X | X coordinate of the rectangle, from the top-left corner. |
System.Int32 | Y | Y coordinate of the rectangle, from the top-left corner. |
System.Int32 | W | Width of the rectangle in pixels. |
System.Int32 | H | Height of the rectangle in pixels. |
Fields
H
Height of the rectangle in pixels.
Declaration
public int H
Field Value
Type | Description |
---|---|
System.Int32 |
W
Width of the rectangle in pixels.
Declaration
public int W
Field Value
Type | Description |
---|---|
System.Int32 |
X
X coordinate of the rectangle, from the top-left corner.
Declaration
public int X
Field Value
Type | Description |
---|---|
System.Int32 |
Y
Y coordinate of the rectangle, from the top-left corner.
Declaration
public int Y
Field Value
Type | Description |
---|---|
System.Int32 |
Operators
Implicit(IntPtr to Rect)
Implicit conversion to the managed representation from a native pointer.
Declaration
public static implicit operator Rect(IntPtr ptr)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | ptr | Native pointer to be converted. |
Returns
Type | Description |
---|---|
Eina.Rect |