mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
More hacking on Widgets.
This commit is contained in:
parent
c37ded0ae4
commit
a4491e9630
9 changed files with 150 additions and 2 deletions
24
Widgets/WindowManager.h
Normal file
24
Widgets/WindowManager.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
#pragma once
|
||||
|
||||
class Widget;
|
||||
|
||||
#include "Object.h"
|
||||
#include <AK/HashTable.h>
|
||||
|
||||
class WindowManager : public Object {
|
||||
public:
|
||||
static WindowManager& the();
|
||||
|
||||
void addWindow(Widget&);
|
||||
void paintWindowFrames();
|
||||
|
||||
void notifyTitleChanged(Widget&);
|
||||
|
||||
private:
|
||||
WindowManager();
|
||||
~WindowManager();
|
||||
|
||||
void paintWindowFrame(Widget&);
|
||||
|
||||
HashTable<Widget*> m_windows;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue