summaryrefslogtreecommitdiff
path: root/Widgets/Window.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-09 03:16:58 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-09 03:16:58 +0100
commit723ff8c2ab7046bfbda791fb42f70be4814ee542 (patch)
treea5111eeaa206993348daa299aea12b93a90d7eb5 /Widgets/Window.h
parentbaec8925a86e0fafe0a66bfa6a83d4ed05d9f570 (diff)
downloadserenity-723ff8c2ab7046bfbda791fb42f70be4814ee542.zip
Add basic z-order for Windows.
Diffstat (limited to 'Widgets/Window.h')
-rw-r--r--Widgets/Window.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/Widgets/Window.h b/Widgets/Window.h
index d81599e656..0c3658e052 100644
--- a/Widgets/Window.h
+++ b/Widgets/Window.h
@@ -4,11 +4,12 @@
#include "Rect.h"
#include "GraphicsBitmap.h"
#include <AK/AKString.h>
+#include <AK/InlineLinkedList.h>
#include <AK/WeakPtr.h>
class Widget;
-class Window final : public Object {
+class Window final : public Object, public InlineLinkedListNode<Window> {
public:
explicit Window(Object* parent = nullptr);
virtual ~Window() override;
@@ -55,6 +56,11 @@ public:
void did_paint();
+ // For InlineLinkedList.
+ // FIXME: Maybe make a ListHashSet and then WindowManager can just use that.
+ Window* m_next { nullptr };
+ Window* m_prev { nullptr };
+
private:
String m_title;
Rect m_rect;