mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
WindowServer+LibGfx: Move window frame rect calculation to WindowTheme
This commit is contained in:
parent
0e627b0273
commit
de1a54c378
4 changed files with 41 additions and 22 deletions
|
@ -36,6 +36,7 @@ public:
|
|||
enum class WindowType {
|
||||
Normal,
|
||||
Notification,
|
||||
Other,
|
||||
};
|
||||
|
||||
enum class WindowState {
|
||||
|
@ -56,6 +57,8 @@ public:
|
|||
virtual IntRect title_bar_icon_rect(WindowType, const IntRect& window_rect, const Palette&) const = 0;
|
||||
virtual IntRect title_bar_text_rect(WindowType, const IntRect& window_rect, const Palette&) const = 0;
|
||||
|
||||
virtual IntRect frame_rect_for_window(WindowType, const IntRect& window_rect, const Palette&) const = 0;
|
||||
|
||||
protected:
|
||||
WindowTheme() { }
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue