How about a Component::getChildComponents() method?


#1

Being able to grab an array of child components would enable us to do things like this:

for(Component* child : getChildComponents())
{
child->setName(“Happy days!”);
}

What say ye?


#2

A Component::getAllChildren() method? :wink:


#3

Ha, great minds and all that.