1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 17:37:35 +00:00

PaintBrush: Add a "rectangle tool"

Fill, line, and gradient modes initially supported :^)
This commit is contained in:
Shannon Booth 2019-12-27 08:43:59 +13:00 committed by Andreas Kling
parent 70a2355963
commit b830639912
6 changed files with 145 additions and 1 deletions

View file

@ -5,6 +5,7 @@
#include "PaintableWidget.h"
#include "PenTool.h"
#include "PickerTool.h"
#include "RectangleTool.h"
#include "SprayTool.h"
#include <LibDraw/PNGLoader.h>
#include <LibGUI/GBoxLayout.h>
@ -70,6 +71,7 @@ ToolboxWidget::ToolboxWidget(GWidget* parent)
add_tool("Color Picker", "picker", make<PickerTool>());
add_tool("Erase", "eraser", make<EraseTool>());
add_tool("Line", "line", make<LineTool>());
add_tool("Rectangle", "rectangle", make<RectangleTool>());
}
ToolboxWidget::~ToolboxWidget()