Add BaseWidget::ShowChildren

This commit is contained in:
Lynix
2020-03-15 17:48:14 +01:00
parent 9d88fcd649
commit adf1233ef2
3 changed files with 15 additions and 2 deletions

View File

@@ -75,6 +75,7 @@ namespace Ndk
bool HasFocus() const;
inline void Hide();
inline bool IsVisible() const;
void Resize(const Nz::Vector2f& size);
@@ -128,6 +129,8 @@ namespace Ndk
inline void SetPreferredSize(const Nz::Vector2f& preferredSize);
virtual void ShowChildren(bool show);
private:
inline BaseWidget();

View File

@@ -172,6 +172,11 @@ namespace Ndk
return m_children.size();
}
inline void BaseWidget::Hide()
{
return Show(false);
}
inline bool BaseWidget::IsVisible() const
{
return m_visible;