Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Flexes ¶
Flexes provide the same functionality as layout.Flex but only for layout.Flex children.
func (*Flexes) Layout ¶
func (f *Flexes) Layout(gtx layout.Context, n int, el layout.ListElement) layout.Dimensions
type ListWrap ¶
type ListWrap struct { Axis layout.Axis Alignment layout.Alignment // contains filtered or unexported fields }
ListWrap lays out as many items as possible along the main axis before wrapping to the cross axis.
The number of items along the main axis must be the same for all rows or columns on the cross axis.
func (*ListWrap) Layout ¶
func (l *ListWrap) Layout(gtx layout.Context, num int, el layout.ListElement, w ListWrapElement) layout.Dimensions
type ListWrapElement ¶
type ListWrapElement func(layout.Context, int, layout.Dimensions, op.CallOp) layout.Dimensions
ListWrapElement is called for each row/column with the CallOp containing all the elements to be displayed for that row/column and their combined dimensions.
Click to show internal directories.
Click to hide internal directories.