mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
WindowServer+LibGUI: Implement minimizable property to windows
This commit is contained in:
parent
a641f4d213
commit
eab34a7de3
8 changed files with 46 additions and 8 deletions
|
@ -31,7 +31,7 @@ class WSWindow final : public CObject
|
|||
, public InlineLinkedListNode<WSWindow> {
|
||||
C_OBJECT(WSWindow)
|
||||
public:
|
||||
WSWindow(WSClientConnection&, WSWindowType, int window_id, bool modal, bool resizable, bool fullscreen);
|
||||
WSWindow(WSClientConnection&, WSWindowType, int window_id, bool modal, bool minimizable, bool resizable, bool fullscreen);
|
||||
WSWindow(CObject&, WSWindowType);
|
||||
virtual ~WSWindow() override;
|
||||
|
||||
|
@ -44,6 +44,12 @@ public:
|
|||
bool is_minimized() const { return m_minimized; }
|
||||
void set_minimized(bool);
|
||||
|
||||
bool is_minimizable() const { return m_minimizable; }
|
||||
void set_minimizable(bool);
|
||||
|
||||
bool is_resizable() const { return m_resizable && !m_fullscreen; }
|
||||
void set_resizable(bool);
|
||||
|
||||
bool is_maximized() const { return m_maximized; }
|
||||
void set_maximized(bool);
|
||||
|
||||
|
@ -95,8 +101,6 @@ public:
|
|||
|
||||
bool is_modal() const { return m_modal; }
|
||||
|
||||
bool is_resizable() const { return m_resizable && !m_fullscreen; }
|
||||
|
||||
Rect rect() const { return m_rect; }
|
||||
void set_rect(const Rect&);
|
||||
void set_rect(int x, int y, int width, int height) { set_rect({ x, y, width, height }); }
|
||||
|
@ -198,6 +202,7 @@ private:
|
|||
bool m_visible { true };
|
||||
bool m_has_alpha_channel { false };
|
||||
bool m_modal { false };
|
||||
bool m_minimizable { false };
|
||||
bool m_resizable { false };
|
||||
bool m_listens_to_wm_events { false };
|
||||
bool m_minimized { false };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue