![]() |
vkmEngine 1.0.0
A C++ game engine · vkmengine.com
|
An axis-aligned screen-space rectangle (top-left origin, pixels). More...
#include <ui_element.h>
Public Member Functions | |
| UIRect | intersected (const UIRect &other) const |
The overlap of this rect and other, empty when they miss. | |
Public Attributes | |
| glm::vec2 | pos = {0.0f, 0.0f} |
| Top-left corner. | |
An axis-aligned screen-space rectangle (top-left origin, pixels).
The overlap of this rect and other, empty when they miss.
Never a negative size, since clipping composes down the hierarchy by intersecting.
| other | Rect to intersect with. |