diff options
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -1,24 +1,18 @@ package tree /* - These code should be common to all gui plugins - There are some helper functions that are probably going to be the same everywhere. Mostly due to handling the binary tree structure and the channel communication - - For now, it's just a symlink to the 'master' version in - ./toolkit/nocui/common.go */ import ( - // "go.wit.com/log" "go.wit.com/widget" ) -// var me *TreeInfo - type TreeInfo struct { + PluginName string + // this is the channel we send user events like // mouse clicks or keyboard events back to the program callback chan widget.Action @@ -27,9 +21,15 @@ type TreeInfo struct { pluginChan chan widget.Action treeRoot *Node - NodeI interface{} + // NodeI interface{} + ActionFromChannel func(widget.Action) - PluginName string + NodeAction func(*Node, widget.ActionType) + Add func(*Node) + AddText func(*Node, string) + SetText func(*Node, string) + SetTitle func(*Node, string) + SetLabel func(*Node, string) } type Node struct { |
