Represents a rectangular region, with upper left and lower right coordinates. More...
Public Member Functions | |
WindowRectangle (int x, int y, int width, int height) | |
Constructor. | |
bool | PointInside (MessagePosition point) |
Determine if the given point is in the rectangle. | |
override string | ToString () |
Convert this rectangle to a string. | |
Public Attributes | |
int | Left |
int | Top |
int | Right |
int | Bottom |
Static Private Attributes | |
const int | MINIMUM_WIDTH = 4 |
const int | MINIMUM_HEIGHT = 4 |
Represents a rectangular region, with upper left and lower right coordinates.
For this example, the minimum width of a rectangle is 4 x 4.
Definition at line 18 of file HandlerChain_MessageWindow_Class.cs.
|
inline |
Constructor.
x | X coordinate of upper left corner. |
y | Y coordinate of upper left corner. |
width | Width of rectangle. |
height | Height of rectangle. |
Definition at line 35 of file HandlerChain_MessageWindow_Class.cs.
References WindowRectangle.Bottom, WindowRectangle.Left, WindowRectangle.MINIMUM_HEIGHT, WindowRectangle.MINIMUM_WIDTH, WindowRectangle.Right, and WindowRectangle.Top.
|
inline |
Determine if the given point is in the rectangle.
point | Point to examine. |
Definition at line 56 of file HandlerChain_MessageWindow_Class.cs.
References WindowRectangle.Bottom, WindowRectangle.Left, WindowRectangle.Right, WindowRectangle.Top, MessagePosition.X, and MessagePosition.Y.
Referenced by MessageWindow._PointInCloseBox(), and MessageWindow._PointInWindow().
|
inline |
Convert this rectangle to a string.
Definition at line 73 of file HandlerChain_MessageWindow_Class.cs.
References WindowRectangle.Bottom, WindowRectangle.Left, WindowRectangle.Right, and WindowRectangle.Top.
int Bottom |
Definition at line 26 of file HandlerChain_MessageWindow_Class.cs.
Referenced by WindowRectangle.PointInside(), WindowRectangle.ToString(), and WindowRectangle.WindowRectangle().
int Left |
Definition at line 23 of file HandlerChain_MessageWindow_Class.cs.
Referenced by WindowRectangle.PointInside(), WindowRectangle.ToString(), and WindowRectangle.WindowRectangle().
|
staticprivate |
Definition at line 21 of file HandlerChain_MessageWindow_Class.cs.
Referenced by WindowRectangle.WindowRectangle().
|
staticprivate |
Definition at line 20 of file HandlerChain_MessageWindow_Class.cs.
Referenced by WindowRectangle.WindowRectangle().
int Right |
Definition at line 25 of file HandlerChain_MessageWindow_Class.cs.
Referenced by MessageWindow.MessageWindow(), WindowRectangle.PointInside(), WindowRectangle.ToString(), and WindowRectangle.WindowRectangle().
int Top |
Definition at line 24 of file HandlerChain_MessageWindow_Class.cs.
Referenced by MessageWindow.MessageWindow(), WindowRectangle.PointInside(), WindowRectangle.ToString(), and WindowRectangle.WindowRectangle().