Abstract base class for all other shapes. More...
#include <canvas.hpp>
Public Member Functions | |
shape (const config &cfg) | |
virtual | ~shape () |
virtual void | draw (wfl::map_formula_callable &variables)=0 |
Draws the canvas. More... | |
bool | immutable () const |
Private Attributes | |
bool | immutable_ |
If this is true, this shape will not be removed from the canvas even if the canvas's content is reset. More... | |
Abstract base class for all other shapes.
The other shapes are declared and defined in canvas_private.hpp, since the implementation details are not interesting for users of the canvas.
Definition at line 53 of file canvas.hpp.
|
inlineexplicit |
Definition at line 56 of file canvas.hpp.
|
inlinevirtual |
Definition at line 60 of file canvas.hpp.
|
pure virtual |
Draws the canvas.
variables | The canvas can have formulas in it's definition, this parameter contains the values for these formulas. |
Implemented in gui2::text_shape, gui2::image_shape, gui2::circle_shape, gui2::round_rectangle_shape, gui2::rectangle_shape, and gui2::line_shape.
Referenced by gui2::canvas::draw().
|
inline |
Definition at line 73 of file canvas.hpp.
References immutable_.
|
private |
If this is true, this shape will not be removed from the canvas even if the canvas's content is reset.
Definition at line 83 of file canvas.hpp.
Referenced by immutable().