mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:38:10 +00:00
WindowServer: Make WSWindowFrame and WSButton deal in relative coordinates.
This was a bit painful to get right. The code is a lot more pleasant to deal with now that all coordinates are relative to their local system instead of being absolute screen coordinates.
This commit is contained in:
parent
2ac2d79a8e
commit
0d60c56b51
6 changed files with 67 additions and 79 deletions
|
@ -19,7 +19,10 @@ public:
|
|||
void notify_window_rect_changed(const Rect& old_rect, const Rect& new_rect);
|
||||
|
||||
private:
|
||||
void handle_close_button_mouse_event(const WSMouseEvent&);
|
||||
Rect title_bar_rect() const;
|
||||
Rect title_bar_icon_rect() const;
|
||||
Rect title_bar_text_rect() const;
|
||||
Rect middle_border_rect() const;
|
||||
|
||||
WSWindow& m_window;
|
||||
Vector<OwnPtr<WSButton>> m_buttons;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue