Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrZeroN = errors.New("layout for 0 elements couldn't be calculated")
ErrZeroN indicates that passed n to Layout function is 0 and cann't be processed.
Functions ¶
func Layout ¶
Layout returns xstack layout description as string. Is's just helper function - wrapper around LayoutTo with predefined AlignHorizontal.
func LayoutTo ¶
LayoutTo writes xstack layout description to w. Where n is total number of elements in grid.
func LayoutToWithAlign ¶ added in v0.0.2
LayoutToWithAlign is same as LayoutTo but with custom align.
Types ¶
Click to show internal directories.
Click to hide internal directories.