#include <canvas_private.hpp>
Public Member Functions | |
| circle_shape (const config &cfg) | |
| Constructor. More... | |
| void | draw (wfl::map_formula_callable &variables) override |
| Draws the canvas. More... | |
Public Member Functions inherited from gui2::canvas::shape | |
| shape (const config &cfg) | |
| virtual | ~shape () |
| bool | immutable () const |
Private Attributes | |
| typed_formula< unsigned > | x_ |
| The center x coordinate of the circle. More... | |
| typed_formula< unsigned > | y_ |
| The center y coordinate of the circle. More... | |
| typed_formula< unsigned > | radius_ |
| The radius of the circle. More... | |
| typed_formula< color_t > | border_color_ |
| The border color of the circle. More... | |
| typed_formula< color_t > | fill_color_ |
| The fill color of the circle. More... | |
| unsigned int | border_thickness_ |
| The border thickness of the circle. More... | |
Definition at line 150 of file canvas_private.hpp.
|
explicit |
Constructor.
| cfg | The config object to define the circle. |
Definition at line 199 of file canvas.cpp.
|
overridevirtual |
Draws the canvas.
| variables | The canvas can have formulas in it's definition, this parameter contains the values for these formulas. |
Implements gui2::canvas::shape.
Definition at line 214 of file canvas.cpp.
References border_color_, border_thickness_, draw::cairo_circle(), draw::cairo_disc(), DBG_GUI_D, fill_color_, color_t::null(), radius_, x_, and y_.
|
private |
The border color of the circle.
Definition at line 170 of file canvas_private.hpp.
Referenced by draw().
|
private |
The border thickness of the circle.
Definition at line 176 of file canvas_private.hpp.
Referenced by draw().
|
private |
The fill color of the circle.
Definition at line 173 of file canvas_private.hpp.
Referenced by draw().
|
private |
|
private |
The center x coordinate of the circle.
Definition at line 163 of file canvas_private.hpp.
Referenced by draw().
|
private |
The center y coordinate of the circle.
Definition at line 164 of file canvas_private.hpp.
Referenced by draw().