MCPcopy Index your code
hub / github.com/g3n/engine / NewHBoxLayout

Function NewHBoxLayout

gui/hboxlayout.go:44–50  ·  view source on GitHub ↗

NewHBoxLayout creates and returns a pointer to a new horizontal box layout

()

Source from the content-addressed store, hash-verified

42
43// NewHBoxLayout creates and returns a pointer to a new horizontal box layout
44func NewHBoxLayout() *HBoxLayout {
45
46 bl := new(HBoxLayout)
47 bl.spacing = 0
48 bl.alignH = AlignLeft
49 return bl
50}
51
52// SetSpacing sets the horizontal spacing between the items in pixels
53// and updates the layout if possible

Callers 2

BuildLayoutMethod · 0.85
newSliderMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected