#include <screen_rect.h>
Collaboration diagram for hoa_video::ScreenRect:

Public Member Functions | |
| void | Intersect (const ScreenRect &rect) |
| Modifies the rectangle coordinates to be an intersection of itself with another rectangle. | |
| ScreenRect (int32 l, int32 t, int32 w, int32 h) | |
| ScreenRect () | |
Public Attributes | |
| int32 | height |
| int32 | left |
| Coordinates for the top left corner of the rectangle. | |
| int32 | top |
| int32 | width |
| Stores the dimensions for this rectangle. | |
****************************************************************************
Definition at line 32 of file screen_rect.h.
| hoa_video::ScreenRect::ScreenRect | ( | ) | [inline] |
Definition at line 34 of file screen_rect.h.
Definition at line 36 of file screen_rect.h.
| void hoa_video::ScreenRect::Intersect | ( | const ScreenRect & | rect | ) | [inline] |
Modifies the rectangle coordinates to be an intersection of itself with another rectangle.
| rect | The rectangle to intersect this rectangle with The resulting intersection rectangle will have all its members set to zero if the two rectangles do not intersect. If the current rectangle has 100% intersection with the argument rectangle, no change in coordinates will occur. Typically, the intersection will be a smaller rectangle than the original two rectangles. |
Definition at line 47 of file screen_rect.h.
References height, left, top, and width.
Referenced by hoa_video::TextBox::_DrawTextLines(), hoa_video::OptionBox::Draw(), and hoa_video::MenuWindow::Draw().
Definition at line 76 of file screen_rect.h.
Referenced by hoa_video::GameVideo::_PopContext(), hoa_video::GameVideo::CalculateScreenRect(), hoa_video::OptionBox::Draw(), Intersect(), hoa_video::GameVideo::SetScissorRect(), and hoa_video::MenuWindow::Update().
Coordinates for the top left corner of the rectangle.
Definition at line 73 of file screen_rect.h.
Referenced by hoa_video::GameVideo::_PopContext(), hoa_video::GameVideo::CalculateScreenRect(), hoa_video::OptionBox::Draw(), Intersect(), hoa_video::GameVideo::SetScissorRect(), and hoa_video::MenuWindow::Update().
Definition at line 73 of file screen_rect.h.
Referenced by hoa_video::GameVideo::_PopContext(), hoa_video::GameVideo::CalculateScreenRect(), hoa_video::OptionBox::Draw(), Intersect(), hoa_video::GameVideo::SetScissorRect(), and hoa_video::MenuWindow::Update().
Stores the dimensions for this rectangle.
Definition at line 76 of file screen_rect.h.
Referenced by hoa_video::GameVideo::_PopContext(), hoa_video::GameVideo::CalculateScreenRect(), hoa_video::OptionBox::Draw(), Intersect(), hoa_video::GameVideo::SetScissorRect(), and hoa_video::MenuWindow::Update().
1.5.1