Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { HSpan int // Number of columns the widget should span VSpan int // Number of rows the widget should span SizeHint geom.Size // Hint requesting a particular size of the widget MinSize geom.Size // Override for the minimum size of the widget HAlign align.Alignment // Horizontal alignment of the widget within its space VAlign align.Alignment // Vertical alignment of the widget within its space HGrab bool // Grab excess horizontal space if true VGrab bool // Grab excess vertical space if true // contains filtered or unexported fields }
Data is used to control how an object is laid out by the Flex layout.
type Layout ¶
type Layout struct { Columns int // Number of columns HSpacing float64 // Horizontal spacing between columns VSpacing float64 // Vertical spacing between rows HAlign align.Alignment // Horizontal alignment of the widget within its space VAlign align.Alignment // Vertical alignment of the widget within its space EqualColumns bool // Each column uses the same amount of horizontal space if true // contains filtered or unexported fields }
Layout lays out the children of its widget based on the Data assigned to each child.
Click to show internal directories.
Click to hide internal directories.