Documentation
¶
Overview ¶
Some extra layouts for Gioui.
ListWrap is copied from https://git.sr.ht/~pierrec/giox. All rights are reversed to the author.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ListWrap ¶ added in v0.6.0
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 ¶ added in v0.6.0
func (l *ListWrap) 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.