|
NovaSVG 0.10.0
A header-only SVG library
|
#include <canvas.h>
Public Member Functions | |
| Path ()=default | |
| Path (const Path &path) | |
| Path (Path &&path) | |
| ~Path () | |
| Path & | operator= (const Path &path) |
| Path & | operator= (Path &&path) |
| void | swap (Path &path) |
| void | moveTo (float x, float y) |
| void | lineTo (float x, float y) |
| void | quadTo (float x1, float y1, float x2, float y2) |
| void | cubicTo (float x1, float y1, float x2, float y2, float x3, float y3) |
| void | arcTo (float rx, float ry, float xAxisRotation, bool largeArcFlag, bool sweepFlag, float x, float y) |
| void | close () |
| void | addEllipse (float cx, float cy, float rx, float ry) |
| void | addRoundRect (float x, float y, float w, float h, float rx, float ry) |
| void | addRect (float x, float y, float w, float h) |
| void | addEllipse (const Point ¢er, const Size &radii) |
| void | addRoundRect (const Rect &rect, const Size &radii) |
| void | addRect (const Rect &rect) |
| void | reset () |
| Rect | boundingRect () const |
| bool | isEmpty () const |
| bool | isUnique () const |
| bool | isNull () const |
| path_t * | data () const |
| bool | parse (const char *data, size_t length) |
|
default |
Referenced by operator=(), and operator=().
| NOVASVG_INLINE novasvg::Path::Path | ( | const Path & | path | ) |
| NOVASVG_INLINE novasvg::Path::Path | ( | Path && | path | ) |
| NOVASVG_INLINE novasvg::Path::~Path | ( | ) |
Definition at line 732 of file canvas.h.
References novasvg::render::path_destroy().
| NOVASVG_INLINE void novasvg::Path::addEllipse | ( | const Point & | center, |
| const Size & | radii | ||
| ) |
Definition at line 794 of file canvas.h.
References addEllipse(), novasvg::Size::h, novasvg::Size::w, novasvg::Point::x, and novasvg::Point::y.
| NOVASVG_INLINE void novasvg::Path::addEllipse | ( | float | cx, |
| float | cy, | ||
| float | rx, | ||
| float | ry | ||
| ) |
Definition at line 779 of file canvas.h.
References novasvg::render::path_add_ellipse().
Referenced by addEllipse().
| NOVASVG_INLINE void novasvg::Path::addRect | ( | const Rect & | rect | ) |
Definition at line 804 of file canvas.h.
References addRect(), novasvg::render::rect::h, novasvg::render::rect::w, novasvg::render::rect::x, and novasvg::render::rect::y.
| NOVASVG_INLINE void novasvg::Path::addRect | ( | float | x, |
| float | y, | ||
| float | w, | ||
| float | h | ||
| ) |
Definition at line 789 of file canvas.h.
References novasvg::render::path_add_rect().
Referenced by addRect(), and novasvg::ForeignObjectSimple::render().
| NOVASVG_INLINE void novasvg::Path::addRoundRect | ( | const Rect & | rect, |
| const Size & | radii | ||
| ) |
Definition at line 799 of file canvas.h.
References addRoundRect(), novasvg::Size::h, novasvg::render::rect::h, novasvg::Size::w, novasvg::render::rect::w, novasvg::render::rect::x, and novasvg::render::rect::y.
| NOVASVG_INLINE void novasvg::Path::addRoundRect | ( | float | x, |
| float | y, | ||
| float | w, | ||
| float | h, | ||
| float | rx, | ||
| float | ry | ||
| ) |
Definition at line 784 of file canvas.h.
References novasvg::render::path_add_round_rect().
Referenced by addRoundRect().
| NOVASVG_INLINE void novasvg::Path::arcTo | ( | float | rx, |
| float | ry, | ||
| float | xAxisRotation, | ||
| bool | largeArcFlag, | ||
| bool | sweepFlag, | ||
| float | x, | ||
| float | y | ||
| ) |
Definition at line 769 of file canvas.h.
References NOVASVG_DEG2RAD, and novasvg::render::path_arc_to().
| NOVASVG_INLINE Rect novasvg::Path::boundingRect | ( | ) | const |
Definition at line 821 of file canvas.h.
References novasvg::Rect::Empty, and novasvg::render::path_extents().
| NOVASVG_INLINE void novasvg::Path::close | ( | ) |
Definition at line 774 of file canvas.h.
References novasvg::render::path_close().
| NOVASVG_INLINE void novasvg::Path::cubicTo | ( | float | x1, |
| float | y1, | ||
| float | x2, | ||
| float | y2, | ||
| float | x3, | ||
| float | y3 | ||
| ) |
Definition at line 764 of file canvas.h.
References novasvg::render::path_cubic_to().
|
inline |
| NOVASVG_INLINE bool novasvg::Path::isEmpty | ( | ) | const |
Definition at line 830 of file canvas.h.
References novasvg::render::path_get_elements().
Referenced by novasvg::SVGGeometryElement::updateMarkerPositions().
| NOVASVG_INLINE bool novasvg::Path::isUnique | ( | ) | const |
Definition at line 837 of file canvas.h.
References novasvg::render::path_get_reference_count().
Referenced by reset().
| NOVASVG_INLINE void novasvg::Path::lineTo | ( | float | x, |
| float | y | ||
| ) |
Definition at line 754 of file canvas.h.
References novasvg::render::path_line_to().
| NOVASVG_INLINE void novasvg::Path::moveTo | ( | float | x, |
| float | y | ||
| ) |
Definition at line 749 of file canvas.h.
References novasvg::render::path_move_to().
| NOVASVG_INLINE Path & novasvg::Path::operator= | ( | const Path & | path | ) |
| NOVASVG_INLINE Path & novasvg::Path::operator= | ( | Path && | path | ) |
| NOVASVG_INLINE bool novasvg::Path::parse | ( | const char * | data, |
| size_t | length | ||
| ) |
Definition at line 842 of file canvas.h.
References data(), novasvg::render::path_parse(), and novasvg::render::path_reset().
Referenced by novasvg::SVGPath::parse().
| NOVASVG_INLINE void novasvg::Path::quadTo | ( | float | x1, |
| float | y1, | ||
| float | x2, | ||
| float | y2 | ||
| ) |
Definition at line 759 of file canvas.h.
References novasvg::render::path_quad_to().
| NOVASVG_INLINE void novasvg::Path::reset | ( | ) |
Definition at line 809 of file canvas.h.
References isUnique(), novasvg::render::path_destroy(), and novasvg::render::path_reset().
Referenced by novasvg::SVGGeometryElement::layoutElement().
|
inline |
Definition at line 356 of file canvas.h.
Referenced by operator=(), and operator=().