1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:27:34 +00:00

WindowServer+LibGUI: Add "frameless" window flag

This allows you to create windows with no title bar or window frame.
This commit is contained in:
Andreas Kling 2020-05-01 23:26:32 +02:00
parent bb7eb3e104
commit d847304cb9
6 changed files with 18 additions and 0 deletions

View file

@ -100,6 +100,7 @@ void Window::show()
m_minimizable,
m_resizable,
m_fullscreen,
m_frameless,
m_opacity_when_windowless,
m_base_size,
m_size_increment,

View file

@ -62,6 +62,9 @@ public:
bool is_fullscreen() const { return m_fullscreen; }
void set_fullscreen(bool);
bool is_frameless() const { return m_frameless; }
void set_frameless(bool frameless) { m_frameless = frameless; }
bool is_resizable() const { return m_resizable; }
void set_resizable(bool resizable) { m_resizable = resizable; }
@ -219,6 +222,7 @@ private:
bool m_resizable { true };
bool m_minimizable { true };
bool m_fullscreen { false };
bool m_frameless { false };
bool m_layout_pending { false };
bool m_visible_for_timer_purposes { true };
bool m_visible { false };