1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:27:35 +00:00

Move windowing stuff from AbstractScreen to WindowManager.

This commit is contained in:
Andreas Kling 2018-10-12 01:10:16 +02:00
parent 415c4b90c5
commit 02f4d6ef8e
6 changed files with 59 additions and 58 deletions

View file

@ -1,11 +1,12 @@
#pragma once
class Window;
#include "Object.h"
#include "Rect.h"
#include <AK/HashTable.h>
class Widget;
class Window;
class WindowManager : public Object {
public:
static WindowManager& the();
@ -16,11 +17,16 @@ public:
void notifyTitleChanged(Window&);
void notifyRectChanged(Window&, const Rect& oldRect, const Rect& newRect);
Widget* rootWidget() { return m_rootWidget; }
void setRootWidget(Widget*);
private:
WindowManager();
~WindowManager();
void paintWindowFrame(Window&);
virtual void event(Event&) override;
void paintWindowFrame(Window&);
HashTable<Window*> m_windows;
Widget* m_rootWidget { nullptr };
};