diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-01 18:22:29 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-01 19:42:29 +0200 |
commit | 2fa765bbd53f2b07eba8012e350cdea8b8afe13c (patch) | |
tree | e81bc314b2f07c28fd2b08c2e3d58c57f8387118 /Userland/Libraries/LibGUI/Window.h | |
parent | 492464f4c1d3f90ff1a31f0a0c133091748603c2 (diff) | |
download | serenity-2fa765bbd53f2b07eba8012e350cdea8b8afe13c.zip |
LibGUI: Add getter/setter for GUI::Window modified state
This state lives in WindowServer and has no local copy in the client
process for now. This may turn out to be a performance issue, and if
it does we can easily cache it.
Diffstat (limited to 'Userland/Libraries/LibGUI/Window.h')
-rw-r--r-- | Userland/Libraries/LibGUI/Window.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Window.h b/Userland/Libraries/LibGUI/Window.h index f8c765f468..20b0a642dd 100644 --- a/Userland/Libraries/LibGUI/Window.h +++ b/Userland/Libraries/LibGUI/Window.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> + * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> * * SPDX-License-Identifier: BSD-2-Clause */ @@ -29,6 +29,9 @@ public: static Window* from_window_id(int); + bool is_modified() const; + void set_modified(bool); + bool is_modal() const { return m_modal; } void set_modal(bool); |