|
My Project
|
Interface for graphic primitives. More...
#include <graphic_primitive.h>


Public Types | |
| enum class | Color { RED , GREEN , BLUE } |
| Acceptable colors. More... | |
| enum class | Type { CICLE , RECTANGLE , SQUARE , TRIANGLE } |
| Acceptable shape types. More... | |
Public Member Functions | |
| graphic_primitive () | |
| Constructor. | |
| virtual | ~graphic_primitive () |
| Destructor. | |
| virtual void | set_line_color (Color color)=0 |
| Set line color. | |
| virtual void | set_background_color (Color color)=0 |
| Set the background color of the shape. | |
| virtual void | set_coordinates (int x, int y)=0 |
| Setting new coordinates for the figure. | |
| virtual std::tuple< int, int > | get_coordinates ()=0 |
| Returns the coordinates of a figure. | |
| virtual void | draw ()=0 |
| Drawing a figure. | |
Interface for graphic primitives.
|
strong |
|
strong |
| graphic_primitive::graphic_primitive | ( | ) |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |