summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-18 04:08:11 -0600
committerJeff Carr <[email protected]>2024-01-18 04:08:11 -0600
commita78eadea024c2b283b45f1711aeda39d60deab22 (patch)
tree9bc410a7fa97ffa03fcb918efe8b477f864c2865 /structs.go
parent3ea3dd10db0e728240fc659bdd33c622d33e46b4 (diff)
pathsv0.0.2
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go22
1 files changed, 11 insertions, 11 deletions
diff --git a/structs.go b/structs.go
index e4d7418..4ff96c7 100644
--- a/structs.go
+++ b/structs.go
@@ -13,12 +13,12 @@ package tree
import (
// "go.wit.com/log"
- "go.wit.com/lib/widget"
+ "go.wit.com/widget"
)
// var me *TreeInfo
-type TreeInfo struct {
+type TreeInfo struct {
// this is the channel we send user events like
// mouse clicks or keyboard events back to the program
callback chan widget.Action
@@ -26,21 +26,21 @@ type TreeInfo struct {
// this is the channel we get requests to make widgets
pluginChan chan widget.Action
- treeRoot *Node
- NodeI interface {}
- ActionFromChannel func (widget.Action) ()
- PluginName string
+ treeRoot *Node
+ NodeI interface{}
+ ActionFromChannel func(widget.Action)
+ PluginName string
}
type Node struct {
- Parent *Node
+ Parent *Node
children []*Node
- WidgetId int // widget ID
- WidgetType widget.WidgetType
- ParentId int // parent ID
+ WidgetId int // widget ID
+ WidgetType widget.WidgetType
+ ParentId int // parent ID
- State widget.State
+ State widget.State
Strings map[string]int