u02/tool_base: Add draw with no point
This commit is contained in:
parent
3b2c1169f7
commit
0fae793f28
|
@ -35,6 +35,8 @@ public:
|
||||||
// Initialize the tool and store a reference of a canvas_buffer
|
// Initialize the tool and store a reference of a canvas_buffer
|
||||||
tool_base(canvas_buffer &canvas);
|
tool_base(canvas_buffer &canvas);
|
||||||
|
|
||||||
|
// Draw with no point provided
|
||||||
|
virtual void draw();
|
||||||
// Draw with one point provided
|
// Draw with one point provided
|
||||||
virtual void draw(int x, int y);
|
virtual void draw(int x, int y);
|
||||||
// Draw with two points provided
|
// Draw with two points provided
|
||||||
|
|
|
@ -11,6 +11,12 @@ tool_base::tool_base(canvas_buffer &canvas) : canvas(canvas) {
|
||||||
is_draggable = true;
|
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
|
// Draw with one point provided
|
||||||
void tool_base::draw(int x, int y) {
|
void tool_base::draw(int x, int y) {
|
||||||
// Nothing implemented here. Children of this class can implement
|
// Nothing implemented here. Children of this class can implement
|
||||||
|
|
Reference in a new issue