summaryrefslogtreecommitdiff
path: root/Servers/WindowServer/WindowSwitcher.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-11 18:56:31 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-11 18:56:31 +0100
commit193d7c5b19083a88f7fd077fcc87fd939573b49e (patch)
tree2406fdae60068b7f075796900e57f97da5431449 /Servers/WindowServer/WindowSwitcher.h
parentcfa6e44131422b6da11faf31963335b91b7d0009 (diff)
downloadserenity-193d7c5b19083a88f7fd077fcc87fd939573b49e.zip
WindowServer: Make some WindowSwitcher members private
Diffstat (limited to 'Servers/WindowServer/WindowSwitcher.h')
-rw-r--r--Servers/WindowServer/WindowSwitcher.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/Servers/WindowServer/WindowSwitcher.h b/Servers/WindowServer/WindowSwitcher.h
index 77912831b0..2cf1cc5129 100644
--- a/Servers/WindowServer/WindowSwitcher.h
+++ b/Servers/WindowServer/WindowSwitcher.h
@@ -59,24 +59,20 @@ public:
void refresh();
void refresh_if_needed();
+ void select_window(Window&);
+
+private:
int thumbnail_width() const { return 40; }
int thumbnail_height() const { return 40; }
-
int item_height() const { return 10 + thumbnail_height(); }
int padding() const { return 8; }
int item_padding() const { return 8; }
- void select_window(Window&);
-
- Window* selected_window();
-
- Window* switcher_window() { return m_switcher_window.ptr(); }
-
-private:
void draw();
void redraw();
void select_window_at_index(int index);
Gfx::Rect item_rect(int index) const;
+ Window* selected_window();
virtual void event(Core::Event&) override;