NewTree creates and returns a pointer to a new tree widget.
(width, height float32)
| 48 | |
| 49 | // NewTree creates and returns a pointer to a new tree widget. |
| 50 | func 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. |