UIElement: return children as PODVector
Used by AutoBinder
This commit is contained in:
parent
68a4c6e193
commit
23a6d24ac0
@ -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)
|
||||
|
@ -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_; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user