MCPcopy
hub / github.com/g3n/engine / VBoxLayout

Struct VBoxLayout

gui/vboxlayout.go:29–35  ·  view source on GitHub ↗

VBoxLayout implements a panel layout which arranges the panel children vertically. The children can be separated by a space in pixels set by SetSpacing(). The whole group of children can be aligned vertically by SetAlignV() which can accept the following types of alignment: AlignTop: Try to align

Source from the content-addressed store, hash-verified

27// If the layout method SetAutoWidth(true) is called, the panel minimum content width will be the
28// width of the widest child.
29type VBoxLayout struct {
30 pan IPanel
31 spacing float32
32 alignV Align
33 autoHeight bool
34 autoWidth bool
35}
36
37// VBoxLayoutParams specify the horizontal alignment of each individual child.
38type VBoxLayoutParams struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected