summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/structs.go b/structs.go
index 5477d2e..94382d7 100644
--- a/structs.go
+++ b/structs.go
@@ -2,6 +2,7 @@ package gui
import (
"git.wit.org/wit/gui/toolkit"
+ "sync"
)
//
@@ -32,9 +33,9 @@ type GuiArgs struct {
type GuiConfig struct {
// This is the master node. The Binary Tree starts here
- master *Node
+ rootNode *Node
- // A node off of master for passing debugging flags
+ // A node off of rootNode for passing debugging flags
flag *Node
// These are shortcuts to pass default values to make a new window
@@ -56,10 +57,16 @@ type GuiConfig struct {
// simply the name and the size of whatever GUI element exists
type Node struct {
id int
+ initOnce sync.Once
widget toolkit.Widget
+ WidgetType toolkit.WidgetType
- Name string
+// Title string // what is visable to the user
+// Desc string // a name useful for programming
+
+ Text string // what is visable to the user
+ Name string // a name useful for programming
// used for Windows
Width int
@@ -83,9 +90,4 @@ type Node struct {
parent *Node
children []*Node
-
- // is keeping
- // deprecate these things if they don't really need to exist
- // checked bool
- // text string
}