void LayoutBox::AddChild (IWidget& child, Align align) { BaseWidget::AddChild (child); items_.Add (&child, align); if (child.IsFocusable ()) focusables_.Add (&child); GeneratePosition (); }
void LayoutBox::RemoveChild (IWidget& child) { BaseWidget::RemoveChild (child); items_.Remove (&child); if (child.IsFocusable ()) focusables_.Remove (&child); GeneratePosition (); }