mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:47:45 +00:00
Add basic z-order for Windows.
This commit is contained in:
parent
baec8925a8
commit
723ff8c2ab
3 changed files with 31 additions and 11 deletions
|
@ -4,6 +4,7 @@
|
|||
#include "Rect.h"
|
||||
#include "Color.h"
|
||||
#include <AK/HashTable.h>
|
||||
#include <AK/InlineLinkedList.h>
|
||||
#include <AK/WeakPtr.h>
|
||||
|
||||
class MouseEvent;
|
||||
|
@ -32,6 +33,7 @@ public:
|
|||
void did_paint(Window&);
|
||||
|
||||
void repaint();
|
||||
void move_to_front(Window&);
|
||||
|
||||
private:
|
||||
WindowManager();
|
||||
|
@ -52,6 +54,7 @@ private:
|
|||
|
||||
void paintWindowFrame(Window&);
|
||||
HashTable<Window*> m_windows;
|
||||
InlineLinkedList<Window> m_windows_in_order;
|
||||
Widget* m_rootWidget { nullptr };
|
||||
|
||||
WeakPtr<Window> m_activeWindow;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue