Represents a rectangular region, with upper left and lower right coordinates. More...
#include <HandlerChain_MessageWindow_Class.h>
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. | |
std::string | ToString () |
Convert this rectangle to a string. | |
Public Attributes | |
int | Left |
int | Top |
int | Right |
int | Bottom |
Private Attributes | |
const int | MINIMUM_WIDTH = 4 |
Minimum width of a window (to accommodate a close box). | |
const int | MINIMUM_HEIGHT = 4 |
Minimum height of a window (to accommodate a close box). | |
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 30 of file HandlerChain_MessageWindow_Class.h.
|
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 55 of file HandlerChain_MessageWindow_Class.h.
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 76 of file HandlerChain_MessageWindow_Class.h.
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 93 of file HandlerChain_MessageWindow_Class.h.
References WindowRectangle::Bottom, Helpers::formatstring(), WindowRectangle::Left, WindowRectangle::Right, and WindowRectangle::Top.
Referenced by MessageWindow::ToString().
int Bottom |
Definition at line 46 of file HandlerChain_MessageWindow_Class.h.
Referenced by WindowRectangle::PointInside(), WindowRectangle::ToString(), and WindowRectangle::WindowRectangle().
int Left |
Definition at line 43 of file HandlerChain_MessageWindow_Class.h.
Referenced by WindowRectangle::PointInside(), WindowRectangle::ToString(), and WindowRectangle::WindowRectangle().
|
private |
Minimum height of a window (to accommodate a close box).
Definition at line 40 of file HandlerChain_MessageWindow_Class.h.
Referenced by WindowRectangle::WindowRectangle().
|
private |
Minimum width of a window (to accommodate a close box).
Definition at line 36 of file HandlerChain_MessageWindow_Class.h.
Referenced by WindowRectangle::WindowRectangle().
int Right |
Definition at line 45 of file HandlerChain_MessageWindow_Class.h.
Referenced by WindowRectangle::PointInside(), WindowRectangle::ToString(), and WindowRectangle::WindowRectangle().
int Top |
Definition at line 44 of file HandlerChain_MessageWindow_Class.h.
Referenced by WindowRectangle::PointInside(), WindowRectangle::ToString(), and WindowRectangle::WindowRectangle().