diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-06 13:02:38 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-06 13:02:38 +0100 |
commit | 20cfd2a6bff8c469970651dd73ffee60ab0e5176 (patch) | |
tree | 4f92b38ae97fb0add184ccae97d679f484ef1a49 /Servers/WindowServer/WSWindowFrame.cpp | |
parent | c39d44fc2ef0d2e5435524c5b96b5a367df2438b (diff) | |
download | serenity-20cfd2a6bff8c469970651dd73ffee60ab0e5176.zip |
LibGfx: Unpublish Gfx::Rect from global namespace
Diffstat (limited to 'Servers/WindowServer/WSWindowFrame.cpp')
-rw-r--r-- | Servers/WindowServer/WSWindowFrame.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Servers/WindowServer/WSWindowFrame.cpp b/Servers/WindowServer/WSWindowFrame.cpp index 998f4d863f..d82f0d83ba 100644 --- a/Servers/WindowServer/WSWindowFrame.cpp +++ b/Servers/WindowServer/WSWindowFrame.cpp @@ -147,12 +147,12 @@ void WSWindowFrame::did_set_maximized(Badge<WSWindow>, bool maximized) m_maximize_button->set_bitmap(maximized ? *s_unmaximize_button_bitmap : *s_maximize_button_bitmap); } -Rect WSWindowFrame::title_bar_rect() const +Gfx::Rect WSWindowFrame::title_bar_rect() const { return { 3, 3, m_window.width(), window_titlebar_height }; } -Rect WSWindowFrame::title_bar_icon_rect() const +Gfx::Rect WSWindowFrame::title_bar_icon_rect() const { auto titlebar_rect = title_bar_rect(); return { @@ -163,7 +163,7 @@ Rect WSWindowFrame::title_bar_icon_rect() const }; } -Rect WSWindowFrame::title_bar_text_rect() const +Gfx::Rect WSWindowFrame::title_bar_text_rect() const { auto titlebar_rect = title_bar_rect(); auto titlebar_icon_rect = title_bar_icon_rect(); @@ -273,7 +273,7 @@ static Gfx::Rect frame_rect_for_window(WSWindow& window) return frame_rect_for_window(window, window.rect()); } -Rect WSWindowFrame::rect() const +Gfx::Rect WSWindowFrame::rect() const { return frame_rect_for_window(m_window); } |