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

Method SetSplit

gui/splitter.go:96–100  ·  view source on GitHub ↗

SetSplit sets the position of the splitter bar. It accepts a value from 0.0 to 1.0

(pos float32)

Source from the content-addressed store, hash-verified

94// SetSplit sets the position of the splitter bar.
95// It accepts a value from 0.0 to 1.0
96func (s *Splitter) SetSplit(pos float32) {
97
98 s.setSplit(pos)
99 s.recalc()
100}
101
102// Split returns the current position of the splitter bar.
103// It returns a value from 0.0 to 1.0

Callers 1

buildSplitterFunction · 0.95

Calls 2

setSplitMethod · 0.95
recalcMethod · 0.95

Tested by

no test coverage detected