Public Member Functions | |
| Rectangle (int x, int y, int width, int height) | |
| Constructs a rectangle. | |
| Rectangle (Point pt, Size sz) | |
| Construts a rectangle. | |
| Rectangle (System.Drawing.Rectangle rect) | |
| Constructs a rectangle. | |
| bool | Contains (int x, int y) |
| Returns true if the rectangle contains the specified point. | |
| bool | Contains (Point pt) |
| Returns true if the rectangle contains the specified point. | |
| bool | Contains (Rectangle rect) |
| Returns true if the rectangle entirely contains the specified rectangle. | |
| bool | IntersectsWith (Rectangle rect) |
| Returns true if this intersects another rectangle. | |
| override int | GetHashCode () |
| Gets a hash code. | |
| override string | ToString () |
| Creates a string representing this rectangle. | |
| override bool | Equals (object obj) |
| Equality test. | |
| bool | Equals (Rectangle obj) |
| Equality test. | |
Static Public Member Functions | |
| static Rectangle | FromLTRB (int left, int top, int right, int bottom) |
| Static method which returns a rectangle with specified left, top, right and bottom. | |
| static bool | operator== (Rectangle a, Rectangle b) |
| Equality comparison test. | |
| static bool | operator!= (Rectangle a, Rectangle b) |
| Inequality comparison test. | |
| static Rectangle | Intersect (Rectangle a, Rectangle b) |
| Static method returning the intersection of two rectangles. | |
| static Rectangle | Ceiling (RectangleF a) |
| Rounds the coordinates in the rectangle up. | |
| static Rectangle | Union (Rectangle a, Rectangle b) |
| Creates a new rectangle which contains all the area of the two passed in rectangles. | |
| static | operator System.Drawing.Rectangle (Rectangle rect) |
| For inter-op with System.Drawing. | |
Public Attributes | |
| Point | pt |
| Size | sz |
Static Public Attributes | |
| static readonly Rectangle | Empty = new Rectangle(0, 0, 0, 0) |
| Empty rectangle. | |
Properties | |
| int | X [get, set] |
| X value. | |
| int | Y [get, set] |
| Y value. | |
| int | Width [get, set] |
| Width. | |
| int | Height [get, set] |
| Height. | |
| int | Bottom [get] |
| Gets bottom. | |
| int | Left [get] |
| Gets left. | |
| int | Top [get] |
| Gets top. | |
| int | Right [get] |
| Gets right. | |
| Point | Location [get, set] |
| Gets or sets top-left point. | |
| Size | Size [get, set] |
| Gets or sets size. | |
| bool | IsEmpty [get] |
| True if this is (0,0,0,0). | |
| ERY.AgateLib.Geometry.Rectangle.Rectangle | ( | int | x, | |
| int | y, | |||
| int | width, | |||
| int | height | |||
| ) |
Constructs a rectangle.
| x | ||
| y | ||
| width | ||
| height |
Construts a rectangle.
| pt | ||
| sz |
| ERY.AgateLib.Geometry.Rectangle.Rectangle | ( | System.Drawing.Rectangle | rect | ) |
Constructs a rectangle.
[Experimental - The API is likely to change in the future.]
| rect |
| static Rectangle ERY.AgateLib.Geometry.Rectangle.FromLTRB | ( | int | left, | |
| int | top, | |||
| int | right, | |||
| int | bottom | |||
| ) | [static] |
Static method which returns a rectangle with specified left, top, right and bottom.
| left | ||
| top | ||
| right | ||
| bottom |
| bool ERY.AgateLib.Geometry.Rectangle.Contains | ( | int | x, | |
| int | y | |||
| ) |
Returns true if the rectangle contains the specified point.
| x | ||
| y |
| bool ERY.AgateLib.Geometry.Rectangle.Contains | ( | Point | pt | ) |
Returns true if the rectangle contains the specified point.
| pt |
| bool ERY.AgateLib.Geometry.Rectangle.Contains | ( | Rectangle | rect | ) |
Returns true if the rectangle entirely contains the specified rectangle.
| rect |
| bool ERY.AgateLib.Geometry.Rectangle.IntersectsWith | ( | Rectangle | rect | ) |
Returns true if this intersects another rectangle.
| rect |
Equality comparison test.
| a | ||
| b |
Inequality comparison test.
| a | ||
| b |
| override int ERY.AgateLib.Geometry.Rectangle.GetHashCode | ( | ) |
Gets a hash code.
| override string ERY.AgateLib.Geometry.Rectangle.ToString | ( | ) |
Creates a string representing this rectangle.
| override bool ERY.AgateLib.Geometry.Rectangle.Equals | ( | object | obj | ) |
Equality test.
| obj |
| bool ERY.AgateLib.Geometry.Rectangle.Equals | ( | Rectangle | obj | ) |
Equality test.
| obj |
Static method returning the intersection of two rectangles.
| a | ||
| b |
| static Rectangle ERY.AgateLib.Geometry.Rectangle.Ceiling | ( | RectangleF | a | ) | [static] |
Rounds the coordinates in the rectangle up.
| a |
Creates a new rectangle which contains all the area of the two passed in rectangles.
| a | ||
| b |
| static ERY.AgateLib.Geometry.Rectangle.operator System.Drawing.Rectangle | ( | Rectangle | rect | ) | [explicit, static] |
readonly Rectangle ERY.AgateLib.Geometry.Rectangle.Empty = new Rectangle(0, 0, 0, 0) [static] |
Empty rectangle.
int ERY.AgateLib.Geometry.Rectangle.X [get, set] |
X value.
int ERY.AgateLib.Geometry.Rectangle.Y [get, set] |
Y value.
int ERY.AgateLib.Geometry.Rectangle.Width [get, set] |
Width.
int ERY.AgateLib.Geometry.Rectangle.Height [get, set] |
Height.
int ERY.AgateLib.Geometry.Rectangle.Bottom [get] |
Gets bottom.
int ERY.AgateLib.Geometry.Rectangle.Left [get] |
Gets left.
int ERY.AgateLib.Geometry.Rectangle.Top [get] |
Gets top.
int ERY.AgateLib.Geometry.Rectangle.Right [get] |
Gets right.
Point ERY.AgateLib.Geometry.Rectangle.Location [get, set] |
Gets or sets top-left point.
Size ERY.AgateLib.Geometry.Rectangle.Size [get, set] |
Gets or sets size.
bool ERY.AgateLib.Geometry.Rectangle.IsEmpty [get] |
True if this is (0,0,0,0).
|
AgateLib Awesome Game and Tool Engine Library |
|