summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-30 09:19:49 -0700
committerJeff Carr <[email protected]>2019-05-30 09:19:49 -0700
commit2b7c2022be24a454c79a613332487fe7faea508e (patch)
tree388519fbd38a968d7e83fe866e036c3a47a69de7 /structs.go
parent3abb0b92f481341bc80da3b971956e34d2f2ef07 (diff)
more variable name fixes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go15
1 files changed, 10 insertions, 5 deletions
diff --git a/structs.go b/structs.go
index 8251f24..0476f6c 100644
--- a/structs.go
+++ b/structs.go
@@ -44,6 +44,7 @@ type GuiData struct {
// windows, all tabs, across all goroutines
// This is "GLOBAL"
AllButtons []GuiButton
+ ButtonMap map[*GuiButton][]func (*GuiButton)
// A map of all the entry boxes
AllEntries []*GuiEntry
@@ -80,17 +81,21 @@ type GuiEntry struct {
Action string // what type of button
}
+type GuiBox struct {
+ EntryMap map[string][]*GuiEntry
+ AH *GuiArea
+
+}
+
type GuiWindow struct {
W *ui.Window
T *ui.Tab
Box1 *ui.Box
Box2 *ui.Box
- EntryMap map[string][]*GuiEntry
-
C *pb.Config
- AH *AreaHandler
+ AH *GuiArea
Action string
}
@@ -109,7 +114,7 @@ type GuiButton struct {
W *ui.Window
T *ui.Tab
- AH *AreaHandler
+ AH *GuiArea
// git.wit.com/wit/gui stuff
WM *GuiWindow
@@ -123,7 +128,7 @@ type GuiButton struct {
// AREA STRUCTURES START
-type AreaHandler struct{
+type GuiArea struct{
Button *GuiButton
Attrstr *ui.AttributedString
Area *ui.Area