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

Method AddCheckBox

gui/control_folder.go:73–78  ·  view source on GitHub ↗

AddCheckBox adds a checkbox to the control folder's tree

(text string)

Source from the content-addressed store, hash-verified

71
72// AddCheckBox adds a checkbox to the control folder's tree
73func (f *ControlFolder) AddCheckBox(text string) *CheckRadio {
74
75 cb := NewCheckBox(text)
76 f.tree.Add(cb)
77 return cb
78}
79
80// AddSlider adds a slider to the control folder's tree
81func (f *ControlFolder) AddSlider(text string, sf, v float32) *Slider {

Callers

nothing calls this directly

Calls 2

NewCheckBoxFunction · 0.85
AddMethod · 0.45

Tested by

no test coverage detected