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

Function NewControlFolder

gui/control_folder.go:32–37  ·  view source on GitHub ↗

NewControlFolder creates and returns a pointer to a new control folder widget with the specified text and initial width

(text string, width float32)

Source from the content-addressed store, hash-verified

30// NewControlFolder creates and returns a pointer to a new control folder widget
31// with the specified text and initial width
32func NewControlFolder(text string, width float32) *ControlFolder {
33
34 f := new(ControlFolder)
35 f.Initialize(text, width)
36 return f
37}
38
39// Initialize initializes the control folder with the specified text and initial width
40// It is normally used when the control folder is embedded in another object

Callers

nothing calls this directly

Calls 1

InitializeMethod · 0.45

Tested by

no test coverage detected