diff options
Diffstat (limited to 'Userland/Applications/PixelPaint/Tools/Tool.h')
-rw-r--r-- | Userland/Applications/PixelPaint/Tools/Tool.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/Tools/Tool.h b/Userland/Applications/PixelPaint/Tools/Tool.h index c3140e5ebc..f6df95eb20 100644 --- a/Userland/Applications/PixelPaint/Tools/Tool.h +++ b/Userland/Applications/PixelPaint/Tools/Tool.h @@ -27,6 +27,7 @@ public: class MouseEvent { public: enum class Action { + DoubleClick, MouseDown, MouseMove, MouseUp @@ -53,6 +54,7 @@ public: GUI::MouseEvent& m_raw_event; }; + virtual void on_doubleclick(Layer*, MouseEvent&) { } virtual void on_mousedown(Layer*, MouseEvent&) { } virtual void on_mousemove(Layer*, MouseEvent&) { } virtual void on_mouseup(Layer*, MouseEvent&) { } |