Path construction class.
More...
#include <art/paperback/graphics/canvas.hxx>
|
|
| Path (Path const &)=delete |
| |
|
| Path (Path &&)=delete |
| |
|
Path & | operator= (Path const &)=delete |
| |
|
Path & | operator= (Path &&)=delete |
| |
Path construction class.
- Todo
- Add example.
◆ Paint_mode
Paint mode enumeration.
| Enumerator |
|---|
| stroke | Stroke.
|
| fill | Fill.
|
| fill_then_stroke | Fill then stroke.
|
◆ Path()
| Art::Paperback::Graphics::Canvas::Path::Path |
( |
Canvas & | canvas, |
|
|
Paint_mode | mode ) |
Constructor.
- Parameters
-
| canvas | The parent canvas. |
| mode | The paint mode. |
◆ ~Path()
| Art::Paperback::Graphics::Canvas::Path::~Path |
( |
| ) |
|
|
noexcept |
◆ canvas() [1/2]
| Canvas & Art::Paperback::Graphics::Canvas::Path::canvas |
( |
| ) |
|
Access parent canvas.
- Returns
- Returns a reference to the parent canvas.
◆ canvas() [2/2]
| Canvas const & Art::Paperback::Graphics::Canvas::Path::canvas |
( |
| ) |
const |
Access parent canvas.
- Returns
- Returns a reference to the parent canvas.
◆ move_to()
| void Art::Paperback::Graphics::Canvas::Path::move_to |
( |
double | x, |
|
|
double | y ) |
◆ line_to()
| void Art::Paperback::Graphics::Canvas::Path::line_to |
( |
double | x, |
|
|
double | y ) |
◆ bezier_curve_to()
| void Art::Paperback::Graphics::Canvas::Path::bezier_curve_to |
( |
double | x1, |
|
|
double | y1, |
|
|
double | x2, |
|
|
double | y2, |
|
|
double | x3, |
|
|
double | y3 ) |