Add BaseWidget::ShowChildren
This commit is contained in:
@@ -188,8 +188,7 @@ namespace Ndk
|
||||
}
|
||||
}
|
||||
|
||||
for (const auto& widgetPtr : m_children)
|
||||
widgetPtr->Show(show);
|
||||
ShowChildren(show);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -313,6 +312,12 @@ namespace Ndk
|
||||
{
|
||||
}
|
||||
|
||||
void BaseWidget::ShowChildren(bool show)
|
||||
{
|
||||
for (const auto& widgetPtr : m_children)
|
||||
widgetPtr->Show(show);
|
||||
}
|
||||
|
||||
void BaseWidget::DestroyChild(BaseWidget* widget)
|
||||
{
|
||||
auto it = std::find_if(m_children.begin(), m_children.end(), [widget] (const std::unique_ptr<BaseWidget>& widgetPtr) -> bool
|
||||
|
||||
Reference in New Issue
Block a user