VBox

Lays children out top to bottom.

Members

Functions

layout
void layout(Rect area)
Undocumented in source. Be warned that the author may not have intended to support it.
preferredSize
Size preferredSize()
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From Sizer

items
SizerItem[] items;
Undocumented in source.
layout
void layout(Rect availableArea)

Arrange the children within availableArea.

preferredSize
Size preferredSize()

The natural size this sizer would like, given its children.

add
SizerItem add(Widget widget)

Add a widget child and return its SizerItem for fluent configuration: box.add(w).proportion(1).pad(Padding.all(8)).alignV(VAlign.middle). A bare add(w) gives a non-stretching child (proportion 0) with no padding.

addSizer
SizerItem addSizer(Sizer sizer)

Add a nested sizer and return its SizerItem for fluent configuration.

length
size_t length()

Number of child items.

Meta