Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Composable ¶
type Composable = api.Composable
func Row ¶
func Row(content Composable, options ...RowOption) Composable
type RowOption ¶
type RowOption func(o *RowOptions)
func WithAlignment ¶
func WithModifier ¶
func WithSpacing ¶
type RowOptions ¶
type RowOptions struct {
Modifier ui.Modifier
// Spacing controls the distribution of space left after
// layout.
Spacing Spacing
// Alignment is the alignment in the cross axis.
Alignment Alignment
}
func DefaultRowOptions ¶
func DefaultRowOptions() RowOptions
type Spacing ¶
const ( // SpaceEnd leaves space at the end. SpaceEnd Spacing = iota // SpaceStart leaves space at the start. SpaceStart // SpaceSides shares space between the start and end. SpaceSides // SpaceAround distributes space evenly between children, // with half as much space at the start and end. SpaceAround // SpaceBetween distributes space evenly between children, // leaving no space at the start and end. SpaceBetween // SpaceEvenly distributes space evenly between children and // at the start and end. SpaceEvenly )
Click to show internal directories.
Click to hide internal directories.