1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:27:35 +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

@ -8,6 +8,7 @@
#include <AK/Badge.h>
#include <Kernel/Process.h>
#include "WSMessageReceiver.h"
#include <WindowServer/WSWindowType.h>
class Process;
class WSMenu;
@ -19,7 +20,7 @@ public:
explicit WSWindow(WSMenu&);
virtual ~WSWindow() override;
bool is_menu() const { return m_menu; }
WSWindowType type() const { return m_type; }
int window_id() const { return m_window_id; }
String title() const { return m_title; }
@ -72,6 +73,7 @@ private:
Lock m_lock;
String m_title;
Rect m_rect;
WSWindowType m_type { WSWindowType::Normal };
bool m_is_being_dragged { false };
bool m_global_cursor_tracking_enabled { false };
bool m_visible { true };