A generic container widget that can hold other widgets. An instance of a Container cannot be created directly, but its descendent classes Window and FrameBox are frequently used.
Method Summary: | ||
void | Container::addChild | (Widget* pWidget); |
void | Container::removeChild | (Widget* pWidget); |
bool | Container::isChild | (Widget* pWidget); |
void | Container::showAll | (); |
void | Container::hideAll | (); |
void | Container::forEach | (void (*cb)(Widget *child, void *data) pCallback, void* pData); |
void Container::addChild | ||||||
void Container::addChild(Widget* pWidget); Adds a child to the collection. | ||||||
|
void Container::removeChild | ||||||
void Container::removeChild(Widget* pWidget); Removes a child widget from the collection. | ||||||
|
bool Container::isChild | ||||||
bool Container::isChild(Widget* pWidget); Checks if a widget is a child of this container. | ||||||
|
void Container::showAll |
void Container::showAll(); Makes all the children visible. |
void Container::hideAll |
void Container::hideAll(); Makes all the children not visible. |
void Container::forEach | |||||||||
void Container::forEach(void (*cb)(Widget *child, void *data) pCallback, void* pData); Calls the given callback function for each child widget. | |||||||||
|