|
NovaSVG 0.10.0
A header-only SVG library
|
Represents a 2D axis-aligned bounding box. More...
#include <novasvg.h>
Public Member Functions | |
| Box ()=default | |
| Constructs a box with zero dimensions. | |
| Box (float x, float y, float w, float h) | |
| Constructs a box with the specified position and size. | |
| Box (const Rect &rect) | |
| Box & | transform (const Matrix &matrix) |
| Transforms the box using the specified matrix. | |
| Box | transformed (const Matrix &matrix) const |
| Returns a new box transformed by the specified matrix. | |
Public Attributes | |
| float | x {0} |
| The x-coordinate of the box's origin. | |
| float | y {0} |
| The y-coordinate of the box's origin. | |
| float | w {0} |
| The width of the box. | |
| float | h {0} |
| The height of the box. | |
|
default |
Constructs a box with zero dimensions.
|
inline |
Transforms the box using the specified matrix.
| matrix | The transformation matrix. |
Definition at line 732 of file novasvg.h.
References transformed().
Returns a new box transformed by the specified matrix.
| matrix | The transformation matrix. |
Definition at line 738 of file novasvg.h.
References novasvg::Transform::mapRect().
Referenced by novasvg::Element::getGlobalBoundingBox(), novasvg::Element::getLocalBoundingBox(), and transform().
| float novasvg::Box::x {0} |
| float novasvg::Box::y {0} |