1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:28:12 +00:00

WindowServer: Add a WSWindowType enum.

So far there's only Normal and Menu. Maybe we'll need more later.
This commit is contained in:
Andreas Kling 2019-02-12 11:53:45 +01:00
parent 111589a558
commit c61f9eba61
5 changed files with 15 additions and 3 deletions

View file

@ -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);