u02/tool_base: Add draw with no point

Simon Bruder 2023-05-07 15:23:33 +02:00
parent 3b2c1169f7
commit 0fae793f28
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
2 changed files with 8 additions and 0 deletions

View File

@ -35,6 +35,8 @@ public:
// Initialize the tool and store a reference of a canvas_buffer
tool_base(canvas_buffer &canvas);
// Draw with no point provided
virtual void draw();
// Draw with one point provided
virtual void draw(int x, int y);
// Draw with two points provided

View File

@ -11,6 +11,12 @@ tool_base::tool_base(canvas_buffer &canvas) : canvas(canvas) {
is_draggable = true;
}
// Draw with no point provided
void tool_base::draw() {
// Nothing implemented here. Children of this class can implement
// this method if needed
}
// Draw with one point provided
void tool_base::draw(int x, int y) {
// Nothing implemented here. Children of this class can implement