mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:28:13 +00:00
LibGUI: Add Button double-click callback
This commit is contained in:
parent
af03cf9e80
commit
8f717927f2
4 changed files with 17 additions and 1 deletions
|
@ -41,7 +41,8 @@ public:
|
|||
void set_allowed_mouse_buttons_for_pressing(unsigned allowed_buttons) { m_allowed_mouse_buttons_for_pressing = allowed_buttons; }
|
||||
|
||||
virtual void click(unsigned modifiers = 0) = 0;
|
||||
virtual void middle_mouse_click(unsigned) {};
|
||||
virtual void double_click(unsigned) { }
|
||||
virtual void middle_mouse_click(unsigned) { }
|
||||
virtual bool is_uncheckable() const { return true; }
|
||||
|
||||
int auto_repeat_interval() const { return m_auto_repeat_interval; }
|
||||
|
@ -53,6 +54,7 @@ protected:
|
|||
virtual void mousedown_event(MouseEvent&) override;
|
||||
virtual void mousemove_event(MouseEvent&) override;
|
||||
virtual void mouseup_event(MouseEvent&) override;
|
||||
virtual void doubleclick_event(GUI::MouseEvent&) override;
|
||||
virtual void keydown_event(KeyEvent&) override;
|
||||
virtual void keyup_event(KeyEvent&) override;
|
||||
virtual void enter_event(Core::Event&) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue