mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
Start adding a Window class.
This commit is contained in:
parent
bd6172e3c7
commit
415c4b90c5
12 changed files with 159 additions and 55 deletions
|
@ -1,24 +1,26 @@
|
|||
#pragma once
|
||||
|
||||
class Widget;
|
||||
class Window;
|
||||
|
||||
#include "Object.h"
|
||||
#include "Rect.h"
|
||||
#include <AK/HashTable.h>
|
||||
|
||||
class WindowManager : public Object {
|
||||
public:
|
||||
static WindowManager& the();
|
||||
|
||||
void addWindow(Widget&);
|
||||
void addWindow(Window&);
|
||||
void paintWindowFrames();
|
||||
|
||||
void notifyTitleChanged(Widget&);
|
||||
void notifyTitleChanged(Window&);
|
||||
void notifyRectChanged(Window&, const Rect& oldRect, const Rect& newRect);
|
||||
|
||||
private:
|
||||
WindowManager();
|
||||
~WindowManager();
|
||||
|
||||
void paintWindowFrame(Widget&);
|
||||
void paintWindowFrame(Window&);
|
||||
|
||||
HashTable<Widget*> m_windows;
|
||||
HashTable<Window*> m_windows;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue