mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:07:34 +00:00
LibGUI: Add a new Window::is_maximized method
This commit is contained in:
parent
5950736efa
commit
12671e38e7
2 changed files with 10 additions and 0 deletions
|
@ -682,6 +682,14 @@ void Window::set_fullscreen(bool fullscreen)
|
||||||
WindowServerConnection::the().send_sync<Messages::WindowServer::SetFullscreen>(m_window_id, fullscreen);
|
WindowServerConnection::the().send_sync<Messages::WindowServer::SetFullscreen>(m_window_id, fullscreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Window::is_maximized() const
|
||||||
|
{
|
||||||
|
if (!is_visible())
|
||||||
|
return false;
|
||||||
|
|
||||||
|
return WindowServerConnection::the().send_sync<Messages::WindowServer::IsMaximized>(m_window_id)->maximized();
|
||||||
|
}
|
||||||
|
|
||||||
void Window::schedule_relayout()
|
void Window::schedule_relayout()
|
||||||
{
|
{
|
||||||
if (m_layout_pending)
|
if (m_layout_pending)
|
||||||
|
|
|
@ -64,6 +64,8 @@ public:
|
||||||
bool is_fullscreen() const { return m_fullscreen; }
|
bool is_fullscreen() const { return m_fullscreen; }
|
||||||
void set_fullscreen(bool);
|
void set_fullscreen(bool);
|
||||||
|
|
||||||
|
bool is_maximized() const;
|
||||||
|
|
||||||
bool is_frameless() const { return m_frameless; }
|
bool is_frameless() const { return m_frameless; }
|
||||||
void set_frameless(bool frameless) { m_frameless = frameless; }
|
void set_frameless(bool frameless) { m_frameless = frameless; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue