2024-01-01 16:11:54 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2024-01-05 13:30:00 -06:00
|
|
|
"go.wit.com/gui/widget"
|
2024-01-01 16:11:54 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
// this is specific to the nocui toolkit
|
|
|
|
func initWidget(n *node) *guiWidget {
|
|
|
|
var w *guiWidget
|
|
|
|
w = new(guiWidget)
|
|
|
|
|
2024-01-05 13:30:00 -06:00
|
|
|
if n.WidgetType == widget.Root {
|
2024-01-01 16:11:54 -06:00
|
|
|
n.WidgetId = 0
|
|
|
|
me.rootNode = n
|
|
|
|
return w
|
|
|
|
}
|
|
|
|
return w
|
|
|
|
}
|