|
NovaSVG 0.10.0
A header-only SVG library
|
#include <canvas.h>

Public Member Functions | |
| constexpr | Rect ()=default |
| constexpr | Rect (const Size &size) |
| constexpr | Rect (float width, float height) |
| constexpr | Rect (const Point &origin, const Size &size) |
| constexpr | Rect (const rect_t &rect) |
| constexpr | Rect (float x, float y, float w, float h) |
| Rect (const Box &box) | |
| constexpr void | move (float dx, float dy) |
| constexpr void | move (float d) |
| constexpr void | move (const Point &p) |
| constexpr void | scale (float sx, float sy) |
| constexpr void | scale (float s) |
| constexpr void | inflate (float dx, float dy) |
| constexpr void | inflate (float d) |
| constexpr bool | contains (float px, float py) const |
| constexpr bool | contains (const Point &p) const |
| constexpr Rect | intersected (const Rect &rect) const |
| constexpr Rect | united (const Rect &rect) const |
| constexpr Rect & | intersect (const Rect &o) |
| constexpr Rect & | unite (const Rect &o) |
| constexpr Point | origin () const |
| constexpr Size | size () const |
| constexpr float | right () const |
| constexpr float | bottom () const |
| constexpr bool | isEmpty () const |
| constexpr bool | isZero () const |
| constexpr bool | isValid () const |
Public Attributes | |
| float | x {0} |
| float | y {0} |
| float | w {0} |
| float | h {0} |
Static Public Attributes | |
| static const Rect | Empty |
| static const Rect | Invalid |
| static const Rect | Infinite |
|
constexprdefault |
Referenced by intersected(), and united().
|
inlineexplicitconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 185 of file canvas.h.
References contains(), novasvg::Point::x, and novasvg::Point::y.
Referenced by contains().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 181 of file canvas.h.
Referenced by novasvg::SVGRenderState::beginGroup(), and novasvg::SVGGeometryElement::strokeBoundingBox().
Definition at line 242 of file canvas.h.
References intersected().
Referenced by novasvg::SVGElement::paintBoundingBox().
Definition at line 214 of file canvas.h.
References Empty, h, novasvg::render::rect::h, isValid(), NOVASVG_MAX, NOVASVG_MIN, Rect(), w, novasvg::render::rect::w, x, novasvg::render::rect::x, y, and novasvg::render::rect::y.
Referenced by intersect(), and novasvg::SVGMaskElement::maskBoundingBox().
|
inlineconstexpr |
Definition at line 199 of file canvas.h.
Referenced by novasvg::SVGPreserveAspectRatio::getClipRect(), novasvg::SVGPreserveAspectRatio::getTransform(), and novasvg::SVGGraphicsElement::localTransform().
|
inlineconstexpr |
Definition at line 201 of file canvas.h.
Referenced by novasvg::SVGElement::fillBoundingBox(), intersected(), novasvg::SVGElement::paintBoundingBox(), novasvg::SVGElement::strokeBoundingBox(), and united().
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 176 of file canvas.h.
References move(), novasvg::Point::x, and novasvg::Point::y.
Referenced by move().
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |
Definition at line 194 of file canvas.h.
Referenced by novasvg::SVGElement::currentViewportSize(), and novasvg::SVGPreserveAspectRatio::transformRect().
Definition at line 248 of file canvas.h.
References united().
Referenced by novasvg::SVGElement::fillBoundingBox(), novasvg::SVGElement::strokeBoundingBox(), and novasvg::SVGGeometryElement::strokeBoundingBox().
Definition at line 229 of file canvas.h.
References h, novasvg::render::rect::h, isValid(), NOVASVG_MAX, NOVASVG_MIN, Rect(), w, novasvg::render::rect::w, x, novasvg::render::rect::x, y, and novasvg::render::rect::y.
Referenced by unite().
|
static |
Definition at line 203 of file canvas.h.
Referenced by novasvg::SVGClipPathElement::applyClipPath(), novasvg::Path::boundingRect(), novasvg::SVGElement::fillBoundingBox(), intersected(), novasvg::SVGElement::paintBoundingBox(), novasvg::SVGElement::strokeBoundingBox(), novasvg::SVGRectElement::updateShape(), novasvg::SVGEllipseElement::updateShape(), novasvg::SVGCircleElement::updateShape(), and novasvg::SVGPolyElement::updateShape().
| float novasvg::Rect::h {0} |
Definition at line 211 of file canvas.h.
Referenced by bottom(), novasvg::SVGClipPathElement::clipBoundingBox(), contains(), novasvg::SVGPreserveAspectRatio::getClipRect(), novasvg::SVGPreserveAspectRatio::getTransform(), inflate(), intersected(), isEmpty(), isValid(), isZero(), novasvg::SVGMaskElement::maskBoundingBox(), novasvg::SVGMaskElement::maskRect(), novasvg::SVGRect::parse(), novasvg::SVGTransformOrigin::resolve(), scale(), size(), novasvg::SVGPreserveAspectRatio::transformRect(), and united().
|
static |
|
static |
Definition at line 204 of file canvas.h.
Referenced by novasvg::SVGElement::fillBoundingBox(), novasvg::SVGElement::layoutElement(), novasvg::Transform::mapRect(), and novasvg::SVGElement::strokeBoundingBox().
| float novasvg::Rect::w {0} |
Definition at line 210 of file canvas.h.
Referenced by novasvg::SVGClipPathElement::clipBoundingBox(), novasvg::SVGPreserveAspectRatio::getClipRect(), novasvg::SVGPreserveAspectRatio::getTransform(), inflate(), intersected(), isEmpty(), isValid(), isZero(), novasvg::SVGMaskElement::maskBoundingBox(), novasvg::SVGMaskElement::maskRect(), novasvg::SVGRect::parse(), novasvg::SVGTransformOrigin::resolve(), right(), scale(), size(), novasvg::SVGPreserveAspectRatio::transformRect(), and united().
| float novasvg::Rect::x {0} |
Definition at line 208 of file canvas.h.
Referenced by novasvg::SVGClipPathElement::clipBoundingBox(), contains(), novasvg::SVGPreserveAspectRatio::getClipRect(), novasvg::SVGPreserveAspectRatio::getTransform(), inflate(), intersected(), novasvg::SVGMaskElement::maskBoundingBox(), novasvg::SVGMaskElement::maskRect(), move(), origin(), novasvg::SVGRect::parse(), novasvg::SVGTransformOrigin::resolve(), right(), scale(), novasvg::SVGPreserveAspectRatio::transformRect(), and united().
| float novasvg::Rect::y {0} |
Definition at line 209 of file canvas.h.
Referenced by bottom(), novasvg::SVGClipPathElement::clipBoundingBox(), contains(), novasvg::SVGPreserveAspectRatio::getClipRect(), novasvg::SVGPreserveAspectRatio::getTransform(), inflate(), intersected(), novasvg::SVGMaskElement::maskBoundingBox(), novasvg::SVGMaskElement::maskRect(), move(), origin(), novasvg::SVGRect::parse(), novasvg::SVGTransformOrigin::resolve(), scale(), novasvg::SVGPreserveAspectRatio::transformRect(), and united().