18 lines
310 B
Go
18 lines
310 B
Go
package gui
|
|
|
|
import (
|
|
"go.wit.com/log"
|
|
"go.wit.com/gui/widget"
|
|
)
|
|
|
|
func (parent *Node) NewImage(name string) *Node {
|
|
var newNode *Node
|
|
newNode = parent.newNode(name, widget.Image)
|
|
|
|
log.Warn("NewImage() not implemented. fix this")
|
|
|
|
// inform the toolkits
|
|
sendAction(newNode, widget.Add)
|
|
return newNode
|
|
}
|