mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
PaintBrush: Add an "ellipse tool"
The tool currently supports drawing an elliptical line of a specified thickness. Further improvements can include adding a fill mode, and holding down shift to draw a perfect circle. Closes #375.
This commit is contained in:
parent
123b5c9d34
commit
c85bdff57a
5 changed files with 145 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
#include "ToolboxWidget.h"
|
||||
#include "BucketTool.h"
|
||||
#include "EllipseTool.h"
|
||||
#include "EraseTool.h"
|
||||
#include "LineTool.h"
|
||||
#include "PaintableWidget.h"
|
||||
|
@ -72,6 +73,7 @@ ToolboxWidget::ToolboxWidget(GWidget* parent)
|
|||
add_tool("Erase", "eraser", make<EraseTool>());
|
||||
add_tool("Line", "line", make<LineTool>());
|
||||
add_tool("Rectangle", "rectangle", make<RectangleTool>());
|
||||
add_tool("Ellipse", "circle", make<EllipseTool>());
|
||||
}
|
||||
|
||||
ToolboxWidget::~ToolboxWidget()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue