Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type List ¶
type List struct { Axis layout.Axis Alignment layout.Alignment // contains filtered or unexported fields }
List 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 (*List) Layout ¶
func (l *List) Layout(gtx layout.Context, num int, el layout.ListElement, w WrappedListElement) layout.Dimensions
type WrappedListElement ¶
type WrappedListElement func(layout.Context, int, layout.Dimensions, op.CallOp) layout.Dimensions
ListElement 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.