Axis-aligned bounding box used for repaint-rect math. More...
#include <scene_node.hpp>
Public Member Functions | |
| constexpr bool | empty () const |
| constexpr SceneRect | united (const SceneRect &other) const |
| Union with other, treating empty rects as "no contribution". | |
| constexpr bool | operator== (const SceneRect &o) const |
| constexpr bool | operator!= (const SceneRect &o) const |
Public Attributes | |
| float | x = 0.0f |
| float | y = 0.0f |
| float | w = 0.0f |
| float | h = 0.0f |
Axis-aligned bounding box used for repaint-rect math.
Local-coordinate bounds are reported by local_bounds(); the scene walker composes a node's transform onto its parent to derive "scene" bounds when the host asks for the bounding box that needs to be repainted after a mutation.
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Union with other, treating empty rects as "no contribution".
| float pulp::canvas::SceneRect::h = 0.0f |
| float pulp::canvas::SceneRect::w = 0.0f |
| float pulp::canvas::SceneRect::x = 0.0f |
| float pulp::canvas::SceneRect::y = 0.0f |