setFlexAlign

expect fun LvglObjectBase.setFlexAlign(mainPlace: FlexAlignment, crossPlace: FlexAlignment, trackCrossPlace: FlexAlignment)

Manages placement of children in a Flexbox layout. The possible values are the following:

  • START means left on a horizontally and top vertically (default)

  • END means right on a horizontally and bottom vertically

  • CENTER simply center

  • SPACE_EVENLY items are distributed so that the spacing between any two items (and the space to the edges) is equal; doesn't apply to trackCrossPlace

  • SPACE_AROUND items are evenly distributed in the track with equal space around them; note that visually the spaces aren't equal, since all the items have equal space on both sides; the first item will have one unit of space against the container edge, but two units of space between the next item because that next item has its own spacing that applies; doesn't apply to trackCrossPlace

  • SPACE_BETWEEN items are evenly distributed in the track: first item is on the start line, last item on the end line; doesn't apply to trackCrossPlace

Parameters

mainPlace

Determines how to distribute the items in their track on the main axis. For example, flush the items to the right on FlexFlow.ROW_WRAP (it's called justify-content in CSS).

crossPlace

Determines how to distribute the items in their track on the cross axis. For example, if the items have different height place them to the bottom of the track (it's called align-items in CSS).

trackCrossPlace

Determines how to distribute the tracks (it's called align-content in CSS).

actual fun LvglObjectBase.setFlexAlign(mainPlace: FlexAlignment, crossPlace: FlexAlignment, trackCrossPlace: FlexAlignment)
actual fun LvglObjectBase.setFlexAlign(mainPlace: FlexAlignment, crossPlace: FlexAlignment, trackCrossPlace: FlexAlignment)