From 9cdf86dc8dda0ebf777dfdec5c1eeef53371a1ee Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Fri, 12 Mar 2021 22:27:02 +0200 Subject: Cut/copy/paste paste via menus IssueID #175 --- src/ui/widget.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/ui/widget.c') 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) { } } +void raise_Widget(iWidget *d) { + iPtrArray *onTop = onTop_RootData_(); + if (d->flags & keepOnTop_WidgetFlag) { + iAssert(indexOf_PtrArray(onTop, d) != iInvalidPos); + removeOne_PtrArray(onTop, d); + pushBack_PtrArray(onTop, d); + } +} + iBool hasVisibleChildOnTop_Widget(const iWidget *parent) { iConstForEach(ObjectList, i, parent->children) { const iWidget *child = i.object; -- cgit v1.2.3