|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Size of an entity: the width and height, in dp, of the rectangle that starts at the position of its components::Transform. More...
#include <headers/guillaume/components/bound.hpp>


Public Member Functions | |
| Bound (void) | |
| Construct a bound with the default size of utility::graphic::SizeF. | |
| Bound & | setWidth (float width) noexcept |
| Set the width. | |
| Bound & | setHeight (float height) noexcept |
| Set the height. | |
| ~Bound (void)=default | |
| Default destructor for the Bound component. | |
| Public Member Functions inherited from guillaume::ecs::Component | |
| bool | hasChanged (void) const |
| Tell whether a value of the component changed since the flags were last reset (the end of the previous frame). | |
| void | setHasChanged (bool hasChanged) |
| Raise or lower the changed flag. | |
| Component (void)=default | |
| Create a component that is not marked as changed. | |
| virtual | ~Component (void)=default |
| Virtual destructor, so components can be destroyed through the base class. | |
Size of an entity: the width and height, in dp, of the rectangle that starts at the position of its components::Transform.
The bound has no position of its own. Shapes (rectangle, ellipse, ring, arc, line, image) are drawn to fill it, and the input systems hit-test against it.
Who writes it depends on the entity:
| guillaume::components::Bound::Bound | ( | void | ) |
|
noexcept |
|
noexcept |
Set the width.
Hides utility::graphic::SizeF::setWidth to add change tracking: the component is marked changed only when width differs from the current width, so a measure system writing the same size every frame does not keep the entity dirty.
| width | The new width, in dp. |
Definition at line 33 of file bound.cpp.
