Layout

constructor(components: List<Component?>, style: Style = Style, layout: LayoutFunctionN)

A container over a list of children, for a count that is not known until runtime.

Parameters

components

the children, in the order they are laid out

style

applied to the container itself

layout

measures and places the children, receiving them as a list


constructor(component1: Component?, style: Style = Style, layout: LayoutFunction1)

A container over one child, which layout receives by name rather than by index.

Parameters

component1

the only child

style

applied to the container itself

layout

measures and places the child


constructor(component1: Component?, component2: Component?, style: Style = Style, layout: LayoutFunction2)

A container over two children, which layout receives by name rather than by index.

Parameters

component1

the first child

component2

the second child

style

applied to the container itself

layout

measures and places the children


constructor(component1: Component?, component2: Component?, component3: Component?, style: Style = Style, layout: LayoutFunction3)

A container over three children, which layout receives by name rather than by index. Past three, use the components list.

Parameters

component1

the first child

component2

the second child

component3

the third child

style

applied to the container itself

layout

measures and places the children