u02/tool_base: Add draw with three points
This commit is contained in:
parent
0fae793f28
commit
edb9e7400c
|
@ -41,6 +41,8 @@ public:
|
||||||
virtual void draw(int x, int y);
|
virtual void draw(int x, int y);
|
||||||
// Draw with two points provided
|
// Draw with two points provided
|
||||||
virtual void draw(int x0, int y0, int x1, int y1);
|
virtual void draw(int x0, int y0, int x1, int y1);
|
||||||
|
// Draw with three points provided
|
||||||
|
virtual void draw(int x0, int y0, int x1, int y1, int x2, int y2);
|
||||||
|
|
||||||
// Get the shape that this tool will draw
|
// Get the shape that this tool will draw
|
||||||
const ToolShape get_shape() const;
|
const ToolShape get_shape() const;
|
||||||
|
|
|
@ -29,6 +29,12 @@ void tool_base::draw(int from_x, int from_y, int to_x, int to_y) {
|
||||||
// this method if needed
|
// this method if needed
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Draw with three points provided
|
||||||
|
void tool_base::draw(int x0, int y0, int x1, int y1, int x2, int y2) {
|
||||||
|
// Nothing implemented here. Children of this class can implement
|
||||||
|
// this method if needed
|
||||||
|
}
|
||||||
|
|
||||||
// Get the shape that this tool will draw
|
// Get the shape that this tool will draw
|
||||||
const ToolShape tool_base::get_shape() const { return shape; }
|
const ToolShape tool_base::get_shape() const { return shape; }
|
||||||
|
|
||||||
|
|
Reference in a new issue