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

Function NewTree

gui/tree.go:50–55  ·  view source on GitHub ↗

NewTree creates and returns a pointer to a new tree widget.

(width, height float32)

Source from the content-addressed store, hash-verified

48
49// NewTree creates and returns a pointer to a new tree widget.
50func NewTree(width, height float32) *Tree {
51
52 t := new(Tree)
53 t.Initialize(width, height)
54 return t
55}
56
57// Initialize initializes the tree with the specified initial width and height
58// It is normally used when the folder is embedded in another object.

Callers 1

buildTreeFunction · 0.85

Calls 1

InitializeMethod · 0.45

Tested by

no test coverage detected