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

Method SetAlignH

gui/hboxlayout.go:63–67  ·  view source on GitHub ↗

SetAlignH sets the horizontal alignment of the whole group of items inside the parent panel and updates the layout. This only has any effect if there are no expanded items.

(align Align)

Source from the content-addressed store, hash-verified

61// inside the parent panel and updates the layout.
62// This only has any effect if there are no expanded items.
63func (bl *HBoxLayout) SetAlignH(align Align) {
64
65 bl.alignH = align
66 bl.Recalc(bl.pan)
67}
68
69// SetAutoHeight sets if the panel minimum height should be the height of
70// the largest of its children's height.

Callers 1

BuildLayoutMethod · 0.95

Calls 1

RecalcMethod · 0.95

Tested by

no test coverage detected