summaryrefslogtreecommitdiff
path: root/src/ui/widget.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r--src/ui/widget.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/widget.c b/src/ui/widget.c
index 4d319808..4fad3c86 100644
--- a/src/ui/widget.c
+++ b/src/ui/widget.c
@@ -1207,6 +1207,15 @@ static void printTree_Widget_(const iWidget *d, int indent) {
1207 } 1207 }
1208} 1208}
1209 1209
1210void raise_Widget(iWidget *d) {
1211 iPtrArray *onTop = onTop_RootData_();
1212 if (d->flags & keepOnTop_WidgetFlag) {
1213 iAssert(indexOf_PtrArray(onTop, d) != iInvalidPos);
1214 removeOne_PtrArray(onTop, d);
1215 pushBack_PtrArray(onTop, d);
1216 }
1217}
1218
1210iBool hasVisibleChildOnTop_Widget(const iWidget *parent) { 1219iBool hasVisibleChildOnTop_Widget(const iWidget *parent) {
1211 iConstForEach(ObjectList, i, parent->children) { 1220 iConstForEach(ObjectList, i, parent->children) {
1212 const iWidget *child = i.object; 1221 const iWidget *child = i.object;