20 lines
334 B
Go
20 lines
334 B
Go
package gui
|
|
|
|
import (
|
|
"git.wit.org/wit/gui/toolkit"
|
|
)
|
|
|
|
func (n *Node) NewImage(name string) *Node {
|
|
var newNode *Node
|
|
newNode = n.newNode(name, toolkit.Image, nil)
|
|
|
|
var a toolkit.Action
|
|
a.ActionType = toolkit.Add
|
|
// a.Widget = &newNode.widget
|
|
// a.Where = &n.widget
|
|
// action(&a)
|
|
newaction(&a, newNode, n)
|
|
|
|
return newNode
|
|
}
|