diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-12 11:53:45 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-12 11:53:45 +0100 |
commit | c61f9eba61a7ec49e74026bf9c78a4e09ff1d4e3 (patch) | |
tree | 5412c6bd73b473b4841fdd3346c8dae37faa295a /WindowServer/WSWindowManager.h | |
parent | 111589a5581d4bddce84ccb1ea7587b03dd55d98 (diff) | |
download | serenity-c61f9eba61a7ec49e74026bf9c78a4e09ff1d4e3.zip |
WindowServer: Add a WSWindowType enum.
So far there's only Normal and Menu. Maybe we'll need more later.
Diffstat (limited to 'WindowServer/WSWindowManager.h')
-rw-r--r-- | WindowServer/WSWindowManager.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/WindowServer/WSWindowManager.h b/WindowServer/WSWindowManager.h index 3a3adb2ecd..3b93877281 100644 --- a/WindowServer/WSWindowManager.h +++ b/WindowServer/WSWindowManager.h @@ -10,6 +10,7 @@ #include <AK/HashMap.h> #include "WSMessageReceiver.h" #include "WSMenuBar.h" +#include <WindowServer/WSWindowType.h> class WSScreen; class WSMenuBar; @@ -75,7 +76,7 @@ private: void handle_close_button_mouse_event(WSWindow&, WSMouseEvent&); void set_active_window(WSWindow*); - + template<typename Callback> void for_each_visible_window_of_type(WSWindowType, Callback); template<typename Callback> void for_each_active_menubar_menu(Callback); void close_current_menu(); WSMenu& create_menu(String&& name); |