summaryrefslogtreecommitdiff
path: root/src/ui/root.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/root.h')
-rw-r--r--src/ui/root.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/ui/root.h b/src/ui/root.h
index a3e595ba..fcb5b1b0 100644
--- a/src/ui/root.h
+++ b/src/ui/root.h
@@ -1,12 +1,30 @@
1#pragma once 1#pragma once
2 2
3#include "widget.h" 3#include "widget.h"
4#include <the_Foundation/ptrset.h>
5
6iDeclareType(RootData)
7
8/* TODO: Rename to Root, include `iWidget *root` as well. */
9struct Impl_RootData {
10 iWidget * hover;
11 iWidget * mouseGrab;
12 iWidget * focus;
13 iPtrArray *onTop; /* order is important; last one is topmost */
14 iPtrSet * pendingDestruction;
15};
16
17/*----------------------------------------------------------------------------------------------*/
4 18
5iWidget * createUserInterface_Root (void); 19iWidget * createUserInterface_Root (void);
6 20
7void setCurrent_Root (iWidget *root); 21void setCurrent_Root (iWidget *root, iRootData *rootData);
8iWidget * get_Root (void); 22iWidget * get_Root (void);
23iRootData * data_Root (void);
9 24
25iPtrArray * onTop_RootData (void);
26void destroyPending_RootData (iRootData *);
27
10void updateMetrics_Root (iWidget *); 28void updateMetrics_Root (iWidget *);
11void updatePadding_Root (iWidget *); /* TODO: is part of metrics? */ 29void updatePadding_Root (iWidget *); /* TODO: is part of metrics? */
12void dismissPortraitPhoneSidebars_Root (iWidget *); 30void dismissPortraitPhoneSidebars_Root (iWidget *);