mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:37:45 +00:00
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.
This commit is contained in:
parent
1179d5d921
commit
9df79a77da
10 changed files with 62 additions and 0 deletions
|
@ -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&);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue