18 m_Child =
m_Root.FindAnyWidget(m_ChildName);
20 ResizeParentToChild();
25 return ResizeParentToChild(m_IgnoredBool, -1,
true);
34 m_Child.GetScreenSize(
x,
y);
43 new_x =
x + m_HorizontalOffset;
51 new_y =
y + m_VerticalOffset;
71 m_Child =
m_Root.FindAnyWidget(m_ChildName);
73 Print(
"Error in size to child, " +
m_Root.GetName() +
" has no child named " + m_ChildName);
class SizeToChild extends ScriptedWidgetEventHandler m_ResizeHorizontal
void OnWidgetScriptInit(Widget w)
reference bool m_ResizeVertical
proto void Print(void var)
Prints content of variable to console/log.