diff options
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -38,6 +38,9 @@ type guiConfig struct { // a toolkit requirement. never allow more than one per program initOnce sync.Once + // locking for the binary tree + muTree sync.Mutex + // This is the master node. The Binary Tree starts here rootNode *Node @@ -87,18 +90,22 @@ type Node struct { hidden bool // don't update the toolkits when it's hidden changed bool // do we need to inform the toolkit something changed? enabled bool // if false, then the the user can't click on it + mu sync.Mutex WidgetType widget.WidgetType // most widgets need one value, this is current alue value any + // + label string + // this can programatically identify the widget // The name must be unique progname string // a name useful for debugging // for widgets that a user select from a list of strings - strings []string + strings map[string]int // how to arrange widgets direction widget.Orientation |
