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

LibGUI: Add button handler for middle mouse clicks

This commit is contained in:
networkException 2022-07-10 17:20:04 +02:00 committed by Andreas Kling
parent 18c84d2e63
commit f9212ac02e
4 changed files with 17 additions and 0 deletions

View file

@ -39,6 +39,7 @@ 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 bool is_uncheckable() const { return true; }
int auto_repeat_interval() const { return m_auto_repeat_interval; }