class

Tui::Layout::Flex

Inherits Reference / Object

Constructors

new(direction : Direction = Direction::Vertical, gap : Int32 = 0, align_items : Align = Align::Stretch, justify_content : Align = Align::Start)
Source

Instance methods

align_items
Source
align_items=(align_items : Align)
Source
compute(parent : Rect, items : Array(FlexItem)) : Array(Rect)

Compute layout for children within parent rect

Source
direction
Source
direction=(direction : Direction)
Source
gap=(gap : Int32)
Source
justify_content
Source
justify_content=(justify_content : Align)
Source