diff options
Diffstat (limited to 'src/ui/widget.cc')
-rw-r--r-- | src/ui/widget.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/widget.cc b/src/ui/widget.cc index 5fe6f17..79281a1 100644 --- a/src/ui/widget.cc +++ b/src/ui/widget.cc @@ -47,6 +47,15 @@ void Widget::remove_children() widget_children.clear(); } +bool Widget::is_child(const Widget *widget) const +{ + for (Children::const_iterator it = widget_children.begin(); it != widget_children.end(); it++) { + if (widget == (*it)) + return true; + } + return false; +} + size_t Widget::list(const size_t indent, const bool visible_only) const { if (visible_only && !visible()) |