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:
parent
af03cf9e80
commit
8f717927f2
4 changed files with 17 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue