WindowServer+LibGfx: Move window frame rect calculation to WindowTheme

This commit is contained in:
Andreas Kling 2020-08-10 13:03:44 +02:00
commit de1a54c378
Notes: sideshowbarker 2024-07-19 04:04:20 +09:00
4 changed files with 41 additions and 22 deletions

View file

@ -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() { }
};