1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +00:00

LibGUI: Add Button double-click callback

This commit is contained in:
Sam Atkins 2023-02-17 11:13:25 +00:00 committed by Linus Groh
parent af03cf9e80
commit 8f717927f2
4 changed files with 17 additions and 1 deletions

View file

@ -145,6 +145,12 @@ void Button::click(unsigned modifiers)
m_action->activate(this);
}
void Button::double_click(unsigned int modifiers)
{
if (on_double_click)
on_double_click(modifiers);
}
void Button::middle_mouse_click(unsigned int modifiers)
{
if (!is_enabled())