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

Method SetSpacing

gui/hboxlayout.go:54–58  ·  view source on GitHub ↗

SetSpacing sets the horizontal spacing between the items in pixels and updates the layout if possible

(spacing float32)

Source from the content-addressed store, hash-verified

52// SetSpacing sets the horizontal spacing between the items in pixels
53// and updates the layout if possible
54func (bl *HBoxLayout) SetSpacing(spacing float32) {
55
56 bl.spacing = spacing
57 bl.Recalc(bl.pan)
58}
59
60// SetAlignH sets the horizontal alignment of the whole group of items
61// inside the parent panel and updates the layout.

Callers 1

BuildLayoutMethod · 0.95

Calls 1

RecalcMethod · 0.95

Tested by

no test coverage detected