1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:17:45 +00:00

WindowServer+LibGUI: Implement minimizable property to windows

This commit is contained in:
Jami Kettunen 2020-01-04 13:12:02 +02:00 committed by Andreas Kling
parent a641f4d213
commit eab34a7de3
8 changed files with 46 additions and 8 deletions

View file

@ -61,6 +61,7 @@ void GWindow::show()
m_rect_when_windowless,
m_has_alpha_channel,
m_modal,
m_minimizable,
m_resizable,
m_fullscreen,
m_show_titlebar,
@ -549,6 +550,7 @@ void GWindow::save_to(AK::JsonObject& json)
json.set("title", title());
json.set("visible", is_visible());
json.set("active", is_active());
json.set("minimizable", is_minimizable());
json.set("resizable", is_resizable());
json.set("fullscreen", is_fullscreen());
json.set("rect", rect().to_string());

View file

@ -40,6 +40,9 @@ public:
bool is_resizable() const { return m_resizable; }
void set_resizable(bool resizable) { m_resizable = resizable; }
bool is_minimizable() const { return m_minimizable; }
void set_minimizable(bool minimizable) { m_minimizable = minimizable; }
void set_double_buffering_enabled(bool);
void set_has_alpha_channel(bool);
void set_opacity(float);
@ -175,6 +178,7 @@ private:
bool m_double_buffering_enabled { true };
bool m_modal { false };
bool m_resizable { true };
bool m_minimizable { true };
bool m_fullscreen { false };
bool m_show_titlebar { true };
bool m_layout_pending { false };