summaryrefslogtreecommitdiff
path: root/Applications/PaintBrush/EllipseTool.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-05-12 23:44:46 +0200
committerAndreas Kling <kling@serenityos.org>2020-05-12 23:44:46 +0200
commit83d24dcb1d4d921c4d1c9f85ca97808b2a463b32 (patch)
tree6b2d88a0584d6dc4cccf718f3751f892a203f394 /Applications/PaintBrush/EllipseTool.h
parent7dd8f1b921c5c63c21415a6ded179134a18e1ae2 (diff)
downloadserenity-83d24dcb1d4d921c4d1c9f85ca97808b2a463b32.zip
PaintBrush: Port all the existing toolbox tools to the Layer world :^)
Many tools are not working perfectly right yet, but we'll fix them!
Diffstat (limited to 'Applications/PaintBrush/EllipseTool.h')
-rw-r--r--Applications/PaintBrush/EllipseTool.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Applications/PaintBrush/EllipseTool.h b/Applications/PaintBrush/EllipseTool.h
index 7443d6578a..3638920bcd 100644
--- a/Applications/PaintBrush/EllipseTool.h
+++ b/Applications/PaintBrush/EllipseTool.h
@@ -30,14 +30,16 @@
#include <LibGfx/Point.h>
#include <LibGUI/ActionGroup.h>
+namespace PaintBrush {
+
class EllipseTool final : public Tool {
public:
EllipseTool();
virtual ~EllipseTool() override;
- virtual void on_mousedown(GUI::MouseEvent&) override;
- virtual void on_mousemove(GUI::MouseEvent&) override;
- virtual void on_mouseup(GUI::MouseEvent&) override;
+ virtual void on_mousedown(Layer&, GUI::MouseEvent&) override;
+ virtual void on_mousemove(Layer&, GUI::MouseEvent&) override;
+ virtual void on_mouseup(Layer&, GUI::MouseEvent&) override;
virtual void on_contextmenu(GUI::ContextMenuEvent&) override;
virtual void on_second_paint(GUI::PaintEvent&) override;
virtual void on_keydown(GUI::KeyEvent&) override;
@@ -59,3 +61,5 @@ private:
GUI::ActionGroup m_thickness_actions;
Mode m_mode { Mode::Outline };
};
+
+}