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

Function NewFolder

gui/folder.go:39–44  ·  view source on GitHub ↗

NewFolder creates and returns a pointer to a new folder widget with the specified text and initial width.

(text string, width float32, contentPanel IPanel)

Source from the content-addressed store, hash-verified

37// NewFolder creates and returns a pointer to a new folder widget
38// with the specified text and initial width.
39func NewFolder(text string, width float32, contentPanel IPanel) *Folder {
40
41 f := new(Folder)
42 f.Initialize(text, width, contentPanel)
43 return f
44}
45
46// Initialize initializes the Folder with the specified text and initial width
47// It is normally used when the folder is embedded in another object.

Callers

nothing calls this directly

Calls 1

InitializeMethod · 0.45

Tested by

no test coverage detected