
Public Member Functions | |
| Rectangle () | |
| Initializes a new instance of the Rectangle class with default values (0, 0, 0, 0). | |
| Rectangle (int x, int y, uint width, uint height) | |
| Initializes a new instance of the Rectangle class with specified integer coordinates and dimensions. | |
| Rectangle (Point point, Size size) | |
| Initializes a new instance of the Rectangle class with location and size. | |
| override bool | Equals (object? obj) |
| Determines whether the specified object is equal to the current RectangleT<TPosition,TSize>. | |
| override int | GetHashCode () |
| Returns a hash code for the current point. | |
| override string | ToString () |
| Returns a string representation of the rectangle. | |
Properties | |
| TPosition | X [get] |
| Gets or sets the X coordinate of the top-left corner of the rectangle. | |
| TPosition | Y [get] |
| Gets the Y coordinate of the top-left corner of the rectangle. | |
| TSize | Width [get] |
| Gets the width of the rectangle. | |
| TSize | Height [get] |
| Gets the height of the rectangle. | |
| PointT< TPosition > | Position [get] |
| Gets the position of the rectangle. | |
| SizeT< TSize > | Size [get] |
| Gets the size of the rectangle. | |
Represents a rectangle with integer coordinates and dimensions.
Definition at line 137 of file Rectangle.cs.
|
inline |
Initializes a new instance of the Rectangle class with default values (0, 0, 0, 0).
Definition at line 142 of file Rectangle.cs.
|
inline |
Initializes a new instance of the Rectangle class with specified integer coordinates and dimensions.
| x | The X coordinate of the top-left corner of the rectangle. |
| y | The Y coordinate of the top-left corner of the rectangle. |
| width | The width of the rectangle. |
| height | The height of the rectangle. |
Definition at line 153 of file Rectangle.cs.
Initializes a new instance of the Rectangle class with location and size.
| point | The top-left corner of the rectangle |
| size | The size of the rectangle |
Definition at line 162 of file Rectangle.cs.
|
inlineinherited |
Determines whether the specified object is equal to the current RectangleT<TPosition,TSize>.
| obj | The object to compare with the current rectangle. |
true if the objects are equal; otherwise, false.Definition at line 80 of file Rectangle.cs.
|
inlineinherited |
Returns a hash code for the current point.
Definition at line 113 of file Rectangle.cs.
|
inlineinherited |
Returns a string representation of the rectangle.
Definition at line 122 of file Rectangle.cs.
|
getinherited |
Gets the height of the rectangle.
Definition at line 63 of file Rectangle.cs.
|
getinherited |
Gets the position of the rectangle.
Definition at line 68 of file Rectangle.cs.
Gets the size of the rectangle.
Definition at line 73 of file Rectangle.cs.
|
getinherited |
Gets the width of the rectangle.
Definition at line 58 of file Rectangle.cs.
|
getinherited |
Gets or sets the X coordinate of the top-left corner of the rectangle.
Definition at line 48 of file Rectangle.cs.
|
getinherited |
Gets the Y coordinate of the top-left corner of the rectangle.
Definition at line 53 of file Rectangle.cs.