Exemplo n.º 1
0
  void LayoutBox::AddChild (IWidget& child, Align align)
  {
    BaseWidget::AddChild (child);
    items_.Add (&child, align);

    if (child.IsFocusable ())    
      focusables_.Add (&child);
	  
    GeneratePosition ();
  }
Exemplo n.º 2
0
  void LayoutBox::RemoveChild (IWidget& child)
  {
    BaseWidget::RemoveChild (child);
    items_.Remove (&child);

    if (child.IsFocusable ())
      focusables_.Remove (&child);

    GeneratePosition ();
  }