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

Struct HBoxLayout

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

HBoxLayout implements a panel layout which arranges the panel children horizontally. The children can be separated by a space in pixels set by SetSpacing(). The whole group of children can be aligned horizontally by SetAlignH() which can accept the following types of alignment: AlignLeft: Try to a

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// sum of its children's widths plus the spacing.
29type HBoxLayout struct {
30 pan IPanel
31 spacing float32
32 alignH Align
33 autoHeight bool
34 minHeight bool
35}
36
37// HBoxLayoutParams specify the vertical alignment of each individual child.
38type HBoxLayoutParams struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected