|
libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
|
Represents the drawable canvas of a page. More...
#include <art/paperback/graphics/canvas.hxx>
Classes | |
| class | Begin_text |
| struct | Clear |
| struct | Internal |
| Holds internal canvas data. More... | |
| class | Path |
| Path construction class. More... | |
| class | Save |
| Saves graphics state. More... | |
| class | Set_font |
Public Member Functions | |
| Canvas (Clear const &, Page &) | |
| Constructor. | |
| ~Canvas () | |
| Destructor. | |
| Page & | page () |
| Access the parent page. | |
| Page const & | page () const |
| Access the parent page. | |
| Carousel::Stream & | content () |
| Access the content stream. | |
| Carousel::Stream const & | content () const |
| Access the content stream. | |
| void | set_stroke (double) |
| Set stroke greyscale value. | |
| void | set_fill (double) |
| Set fill greyscale value. | |
| void | set_stroke (Color_RGB const &) |
| Set stroke RGB color. | |
| void | set_fill (Color_RGB const &) |
| Set fill RGB color. | |
| double | get_text_width (string const &) const |
| Compute text width. | |
Public Attributes | |
| friend | Save |
| friend | Path |
| friend | Begin_text |
| friend | Set_font |
Static Public Attributes | |
| static constexpr Clear const | clear {} |
| Dispatch-tag used to clear a canvas. | |
Private Member Functions | |
| Canvas (Canvas const &)=delete | |
| Canvas (Canvas &&)=delete | |
| Canvas & | operator= (Canvas const &)=delete |
| Canvas & | operator= (Canvas &&)=delete |
Private Attributes | |
| unique_ptr< Internal > | internal |
Represents the drawable canvas of a page.
Constructor.
| page | The parent page of this canvas. |
| Art::Paperback::Graphics::Canvas::~Canvas | ( | ) |
Destructor.
| Page & Art::Paperback::Graphics::Canvas::page | ( | ) |
Access the parent page.
| Page const & Art::Paperback::Graphics::Canvas::page | ( | ) | const |
Access the parent page.
| Carousel::Stream & Art::Paperback::Graphics::Canvas::content | ( | ) |
Access the content stream.
| Carousel::Stream const & Art::Paperback::Graphics::Canvas::content | ( | ) | const |
Access the content stream.
| void Art::Paperback::Graphics::Canvas::set_stroke | ( | double | grey_level | ) |
Set stroke greyscale value.
| grey_level | The new grey level. |
| void Art::Paperback::Graphics::Canvas::set_fill | ( | double | grey_level | ) |
Set fill greyscale value.
| grey_level | The new grey level. |
| void Art::Paperback::Graphics::Canvas::set_stroke | ( | Color_RGB const & | color | ) |
Set stroke RGB color.
| color | The new RGB color. |
| void Art::Paperback::Graphics::Canvas::set_fill | ( | Color_RGB const & | color | ) |
Set fill RGB color.
| color | The new RGB color. |
| double Art::Paperback::Graphics::Canvas::get_text_width | ( | string const & | text | ) | const |
Compute text width.
| text | The text for which to compute the width. |
|
staticconstexpr |
Dispatch-tag used to clear a canvas.