UIElement: return children as PODVector

Used by AutoBinder
This commit is contained in:
1vanK 2020-08-14 23:35:38 +03:00
parent 68a4c6e193
commit 23a6d24ac0
2 changed files with 10 additions and 0 deletions

View File

@ -1607,6 +1607,13 @@ void UIElement::GetChildren(PODVector<UIElement*>& dest, bool recursive) const
GetChildrenRecursive(dest);
}
PODVector<UIElement*> UIElement::GetChildren(bool recursive) const
{
PODVector<UIElement*> dest;
GetChildren(dest, recursive);
return dest;
}
unsigned UIElement::GetNumChildren(bool recursive) const
{
if (!recursive)

View File

@ -572,6 +572,9 @@ public:
/// Return child elements either recursively or non-recursively.
void GetChildren(PODVector<UIElement*>& dest, bool recursive = false) const;
/// Return child elements, optionally recursive.
PODVector<UIElement*> GetChildren(bool recursive) const;
/// Return parent element.
UIElement* GetParent() const { return parent_; }