void TabControl::removeAllItems() { while (mItemsInfo.size() > 0) { _destroyChildWidget(mItemsInfo.back().item); } }
void Gui::destroyWidget(Widget* _widget) { Widget* parent = _widget->getParent(); if (parent != nullptr) parent->_destroyChildWidget(_widget); else _destroyChildWidget(_widget); }
void Gui::destroyChildWidget(Widget* _widget) { _destroyChildWidget(_widget); }