mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 14:37:45 +00:00
LibGUI: Add virtual handlers for WindowEntered and WindowLeft events
These can be useful if an application wants to react to the cursor entering the window at any point, rather than just on a widget.
This commit is contained in:
parent
6162e78c7f
commit
444ed56521
2 changed files with 24 additions and 3 deletions
|
@ -208,6 +208,9 @@ protected:
|
|||
virtual void wm_event(WMEvent&);
|
||||
virtual void screen_rects_change_event(ScreenRectsChangeEvent&);
|
||||
|
||||
virtual void enter_event(Core::Event&);
|
||||
virtual void leave_event(Core::Event&);
|
||||
|
||||
private:
|
||||
void update_cursor();
|
||||
void focus_a_widget_if_possible(FocusSource);
|
||||
|
@ -224,7 +227,8 @@ private:
|
|||
void handle_fonts_change_event(FontsChangeEvent&);
|
||||
void handle_screen_rects_change_event(ScreenRectsChangeEvent&);
|
||||
void handle_drag_move_event(DragEvent&);
|
||||
void handle_left_event();
|
||||
void handle_entered_event(Core::Event&);
|
||||
void handle_left_event(Core::Event&);
|
||||
|
||||
void server_did_destroy();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue