LinearLayout

fun LinearLayout(    posX: Number = 0,     posY: Number = 0,     width: Number = 0,     height: Number = 0,     spacing: Number = 0,     visual: Visual = Visual.EMPTY,     orientation: Orientation = Orientation.HORIZONTAL,     verticalAlignment: VerticalAlignment = VerticalAlignment.TOP,     horizontalAlignment: HorizontalAlignment = HorizontalAlignment.LEFT)

Secondary constructor taking separate alignment components.

Parameters

posX

horizontal coordinate for this LinearLayout. Default: 0.

posY

vertical coordinate for this LinearLayout. Default: 0.

width

width for this LinearLayout. Default: 0.

height

height for this LinearLayout. Default: 0.

spacing

spacing between contained GameComponentViews. Default: 0.

visual

Visual to be used for this LinearLayout.

orientation

orientation for this LinearLayout. Default: Orientation.HORIZONTAL.

verticalAlignment

specifies how the contained components should be aligned vertically. Default: VerticalAlignment.TOP.

horizontalAlignment

specifies how the contained components should be aligned horizontally. Default: HorizontalAlignment.LEFT.


fun LinearLayout(    posX: Number = 0,     posY: Number = 0,     width: Number = DEFAULT_LINEAR_LAYOUT_WIDTH,     height: Number = DEFAULT_LINEAR_LAYOUT_HEIGHT,     spacing: Number = DEFAULT_LINEAR_LAYOUT_SPACING,     visual: Visual = Visual.EMPTY,     orientation: Orientation = Orientation.HORIZONTAL,     alignment: Alignment = Alignment.TOP_LEFT)

Creates a LinearLayout.

Parameters

posX

horizontal coordinate for this LinearLayout. Default: 0.

posY

vertical coordinate for this LinearLayout. Default: 0.

width

width for this LinearLayout. Default: DEFAULT_LINEAR_LAYOUT_WIDTH.

height

height for this LinearLayout. Default: DEFAULT_LINEAR_LAYOUT_HEIGHT.

spacing

spacing between contained GameComponentViews. Default: DEFAULT_LINEAR_LAYOUT_SPACING.

visual

Visual to be used for this LinearLayout.

orientation

orientation for this LinearLayout. Default: Orientation.HORIZONTAL.

alignment

specifies how the contained GameComponentViews should be aligned. Default: Alignment.TOP_LEFT.