diff options
author | Joe Bentley <jbentley@star.sr.bham.ac.uk> | 2021-08-24 13:01:01 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-31 16:49:22 +0200 |
commit | 9df79a77da3feed551ed6211af5b7980e6de3932 (patch) | |
tree | bbf610f07dbdba9fa01c996a86fafd7c8d13b50b /Userland/Libraries/LibGUI/Window.h | |
parent | 1179d5d921cf82513098239bbf05b526263d3f2e (diff) | |
download | serenity-9df79a77da3feed551ed6211af5b7980e6de3932.zip |
WindowServer: Add message to notify clients of applet area resize
Applets and windows would like to be able to know when the applet
area has been resized. For example, this happens asynchronously after
an applet has been resized, so we cannot then rely on the applet area
position synchronously after resizing. This adds a new message
applet_area_rect_changed and associated Event AppletAreaRectChange,
and the appropriate virtual functions.
Diffstat (limited to 'Userland/Libraries/LibGUI/Window.h')
-rw-r--r-- | Userland/Libraries/LibGUI/Window.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/Window.h b/Userland/Libraries/LibGUI/Window.h index a6d5b3db8b..013bb4fbe3 100644 --- a/Userland/Libraries/LibGUI/Window.h +++ b/Userland/Libraries/LibGUI/Window.h @@ -207,6 +207,7 @@ protected: Window(Core::Object* parent = nullptr); virtual void wm_event(WMEvent&); virtual void screen_rects_change_event(ScreenRectsChangeEvent&); + virtual void applet_area_rect_change_event(AppletAreaRectChangeEvent&); virtual void enter_event(Core::Event&); virtual void leave_event(Core::Event&); @@ -226,6 +227,7 @@ private: void handle_theme_change_event(ThemeChangeEvent&); void handle_fonts_change_event(FontsChangeEvent&); void handle_screen_rects_change_event(ScreenRectsChangeEvent&); + void handle_applet_area_rect_change_event(AppletAreaRectChangeEvent&); void handle_drag_move_event(DragEvent&); void handle_entered_event(Core::Event&); void handle_left_event(Core::Event&); |