FrameLayout

place all children into same place (usually, only one child should be visible at a time)

Constructors

this
this(string ID)
Undocumented in source.

Members

Functions

layout
void layout(Rect rc)

Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout).

measure
void measure(int parentWidth, int parentHeight)

Measure widget according to desired width and height constraints. (Step 1 of two phase layout).

onDraw
void onDraw(DrawBuf buf)

Draw widget at its position to buffer

showChild
bool showChild(string ID, Visibility otherChildrenVisibility, bool updateFocus)

make one of children (with specified ID) visible, for the rest, set visibility to otherChildrenVisibility

Inherited Members

From WidgetGroup

_children
WidgetList _children;
Undocumented in source.
childCount
int childCount [@property getter]

returns number of children of this widget

child
Widget child(int index)

returns child by index

addChild
Widget addChild(Widget item)

adds child, returns added item

removeChild
Widget removeChild(int index)

removes child, returns removed item

removeChild
Widget removeChild(string ID)

removes child by ID, returns removed item

childIndex
int childIndex(Widget item)

returns index of widget in child list, -1 if passed widget is not a child of this widget

Meta