diff options
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGUI/Window.cpp | 1 | ||||
-rw-r--r-- | Userland/Libraries/LibGUI/Window.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGUI/Window.cpp b/Userland/Libraries/LibGUI/Window.cpp index 7995d73671..5dd3eb1ea9 100644 --- a/Userland/Libraries/LibGUI/Window.cpp +++ b/Userland/Libraries/LibGUI/Window.cpp @@ -142,6 +142,7 @@ void Window::show() m_has_alpha_channel, m_modal, m_minimizable, + m_closeable, m_resizable, m_fullscreen, m_frameless, diff --git a/Userland/Libraries/LibGUI/Window.h b/Userland/Libraries/LibGUI/Window.h index d406aea77b..e472873215 100644 --- a/Userland/Libraries/LibGUI/Window.h +++ b/Userland/Libraries/LibGUI/Window.h @@ -53,6 +53,9 @@ public: bool is_minimizable() const { return m_minimizable; } void set_minimizable(bool minimizable) { m_minimizable = minimizable; } + bool is_closeable() const { return m_closeable; } + void set_closeable(bool closeable) { m_closeable = closeable; } + void set_double_buffering_enabled(bool); void set_has_alpha_channel(bool); bool has_alpha_channel() const { return m_has_alpha_channel; } @@ -269,6 +272,7 @@ private: bool m_resizable { true }; Optional<Gfx::IntSize> m_resize_aspect_ratio {}; bool m_minimizable { true }; + bool m_closeable { true }; bool m_maximized_when_windowless { false }; bool m_fullscreen { false }; bool m_frameless { false }; |