2024-01-17 23:54:19 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"go.wit.com/toolkits/tree"
|
2024-01-18 04:27:19 -06:00
|
|
|
"go.wit.com/widget"
|
2024-01-17 23:54:19 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
func initWidget(n *tree.Node) *guiWidget {
|
|
|
|
var w *guiWidget
|
|
|
|
w = new(guiWidget)
|
|
|
|
|
|
|
|
if n.WidgetType == widget.Root {
|
|
|
|
n.WidgetId = 0
|
|
|
|
me.treeRoot = n
|
|
|
|
return w
|
|
|
|
}
|
|
|
|
return w
|
|
|
|
}
|