diff options
Diffstat (limited to 'src/ui/widget.c')
-rw-r--r-- | src/ui/widget.c | 9 |
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 | ||
1210 | void 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 | |||
1210 | iBool hasVisibleChildOnTop_Widget(const iWidget *parent) { | 1219 | iBool 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; |