#include <canvas_primitives.h>
Public Member Functions | |
CanvasPrimitive ()=default | |
CanvasPrimitive (const Color &color_) | |
CanvasPrimitive (const Color &color_, int z_index_) | |
void | move_to_z_index (int z_index_) |
virtual std::string | get_representation ()=0 |
Basic class for all primitives (figures)
|
default |
|
explicit |
editor::figures::CanvasPrimitive::CanvasPrimitive | ( | const Color & | color_, |
int | z_index_ | ||
) |
|
pure virtual |
Implemented in editor::figures::Polygon, editor::figures::Rectangle, editor::figures::Circle, and editor::figures::Line.
void editor::figures::CanvasPrimitive::move_to_z_index | ( | int | z_index_ | ) |