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

Add a simple spray fill tool

Could do with some more tweaking no doubt, and it'd be nice to have a
circular spray, but this is better than nothing.
This commit is contained in:
Robin Burchell 2019-06-16 11:33:20 +02:00 committed by Andreas Kling
parent 940eb1bbeb
commit 502c54e39a
11 changed files with 143 additions and 32 deletions

View file

@ -1,7 +1,6 @@
#pragma once
#include <LibGUI/GWidget.h>
class Tool;
class PaintableWidget final : public GWidget {
@ -19,8 +18,8 @@ public:
void set_primary_color(Color color) { m_primary_color = color; }
void set_secondary_color(Color color) { m_secondary_color = color; }
void set_tool(Tool* tool) { m_tool = tool; }
Tool* tool() { return m_tool; }
void set_tool(Tool* tool);
Tool* tool();
Color color_for(const GMouseEvent&);