summaryrefslogtreecommitdiff
path: root/image.go
blob: aa7435e7e79975b0398ee1a1bf262d00cbb5f9ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
}