A container is a widget with children. It is not useful all by itself, but it the base class of some useful widgets, or can be used to derive your own special containers.
Parameters: LandWidget * base
Destroy the container and all its children.
Parameters: LandWidget * super
Give keyboard focus to the container, and to children who requested focus.
Returns: LandWidget*
Parameters: LandWidget * super, LandWidget * child
Returns: LandListItem*
Parameters: LandWidget * super, float dx, float dy
Move all children of the container when the container itself is moved.
Parameters: LandWidget * super, int x, int y
Returns a descendant under a specific (absolute) position, or else the widget itself.
Returns the direct child under a specific (absolute) position.
Parameters: LandWidget * super, LandWidget * mouse
Only suceeds if the currently focused window agrees.
Parameters: LandWidget * super, LandWidget * add
Parameters: LandWidget * base, LandWidget * rem
Parameters: LandWidget * widget
The update method is called after the add method. We simply defer it to our children.
Return the first child of the container or None.
Parameters: LandWidget * super, int i
Return the child i or else None.
Parameters: LandWidget * widget, int d
Return the previous (d=-1) or next (d=1) sibling. Returns None as previous/next sibling for the first/last widget.
Crashes if you pass a widget not in a container.
Returns: int
Parameters: LandWidget * super, LandWidget * parent, int x, int y, int w, int h
Parameters: LandWidget * parent, int x, int y, int w, int h
no parameters