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

LibGUI: Add action enter/leave hooks on GUI::Application

Apps can now hook into these events by assigning a callback to the
on_action_enter and on_action_leave hooks on GUI::Application. :^)
This commit is contained in:
Andreas Kling 2021-04-17 18:21:15 +02:00
parent 4c6f541d5b
commit 7d0b59cb05
2 changed files with 21 additions and 0 deletions

View file

@ -95,9 +95,14 @@ public:
}
void notify_drag_cancelled(Badge<WindowServerConnection>);
Function<void(Action&)> on_action_enter;
Function<void(Action&)> on_action_leave;
private:
Application(int argc, char** argv);
virtual void event(Core::Event&) override;
void tooltip_show_timer_did_fire();
void tooltip_hide_timer_did_fire();