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

PixelPaint: Pass doubleclick events to tools

This commit is contained in:
Timothy Slater 2022-08-31 18:41:10 -05:00 committed by Linus Groh
parent 7b163573e6
commit 20f6485311
3 changed files with 11 additions and 0 deletions

View file

@ -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&) { }