8 void OnWidgetScriptInit(
Widget w)
13 Widget child = m_root.GetChildren();
18 child = child.GetSibling();
21 m_root.SetHandler(
this);
25 override bool OnUpdate(
Widget w)
27 if (w == m_root) UpdateLayout();
47 protected int GetChildIndex(
Widget w)
49 Widget child = m_root.GetChildren();
54 if (child == w)
return index;
57 child = child.GetSibling();
66 if (m_count == 0)
return;
70 m_root.GetScreenSize(width, height);
72 Widget child = m_root.GetChildren();
77 UpdateChild(child, width, height, index);
79 child = child.GetSibling();
82 protected void UpdateChild(
Widget child,
float w,
float h,
int index) {}