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:
parent
415c4b90c5
commit
02f4d6ef8e
6 changed files with 59 additions and 58 deletions
|
@ -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 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue