mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:57:35 +00:00
WindowServer: Minor tweaks to Window.h
This commit is contained in:
parent
331ab52318
commit
819325892a
1 changed files with 5 additions and 6 deletions
|
@ -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
|
* SPDX-License-Identifier: BSD-2-Clause
|
||||||
*/
|
*/
|
||||||
|
@ -68,9 +68,11 @@ enum class WindowMenuDefaultAction {
|
||||||
Restore
|
Restore
|
||||||
};
|
};
|
||||||
|
|
||||||
class Window final : public Core::Object
|
class Window final
|
||||||
|
: public Core::Object
|
||||||
, public InlineLinkedListNode<Window> {
|
, public InlineLinkedListNode<Window> {
|
||||||
C_OBJECT(Window)
|
C_OBJECT(Window);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual ~Window() override;
|
virtual ~Window() override;
|
||||||
|
|
||||||
|
@ -265,7 +267,6 @@ public:
|
||||||
void recalculate_rect();
|
void recalculate_rect();
|
||||||
|
|
||||||
// For InlineLinkedList.
|
// For InlineLinkedList.
|
||||||
// FIXME: Maybe make a ListHashSet and then WindowManager can just use that.
|
|
||||||
Window* m_next { nullptr };
|
Window* m_next { nullptr };
|
||||||
Window* m_prev { nullptr };
|
Window* m_prev { nullptr };
|
||||||
|
|
||||||
|
@ -302,8 +303,6 @@ public:
|
||||||
bool default_positioned() const { return m_default_positioned; }
|
bool default_positioned() const { return m_default_positioned; }
|
||||||
void set_default_positioned(bool p) { m_default_positioned = p; }
|
void set_default_positioned(bool p) { m_default_positioned = p; }
|
||||||
|
|
||||||
bool is_invalidated() const { return m_invalidated; }
|
|
||||||
|
|
||||||
bool is_opaque() const
|
bool is_opaque() const
|
||||||
{
|
{
|
||||||
if (opacity() < 1.0f)
|
if (opacity() < 1.0f)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue