summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-29 19:57:15 -0700
committerJeff Carr <[email protected]>2019-05-29 19:57:15 -0700
commita6368b7b7111758492d06f2ab9ee513dddd7197e (patch)
treea166e525dbdf9b3c44c3f78be0b106d866d4b0ff /structs.go
parent77035ad6bdf08097bafd4f4d4668fda4a2db9bac (diff)
large change to track the window everywhere
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go17
1 files changed, 14 insertions, 3 deletions
diff --git a/structs.go b/structs.go
index 6a10517..2b9bdc9 100644
--- a/structs.go
+++ b/structs.go
@@ -53,7 +53,9 @@ type GuiDataStructure struct {
// pass it in
CurrentVM *pb.Event_VM
- Window1 *WindowMap
+ Windows []*WindowMap
+ NewWindow int
+// Window1 *WindowMap
Window2 *WindowMap
EntryNick *ui.Entry
@@ -92,8 +94,11 @@ type WindowMap struct {
Box1 *ui.Box
Box2 *ui.Box
+ C *pb.Config
+
AH *AreaHandler
- AreaText *ui.AttributedString
+// AreaText *ui.AttributedString
+ Action string
}
type FontString struct {
@@ -104,17 +109,22 @@ type FontString struct {
}
type ButtonMap struct {
+ // andlabs/ui stuff
B *ui.Button
FB *ui.FontButton
A *ui.Area
W *ui.Window
T *ui.Tab
+ AH *AreaHandler
+
+ // git.wit.com/wit/gui stuff
+ WM *WindowMap
Account *pb.Account
VM *pb.Event_VM
- AH *AreaHandler
Action string // what type of button
+ // a callback function for the main application
custom func (*ButtonMap)
}
@@ -124,6 +134,7 @@ type AreaHandler struct{
Button *ButtonMap
Attrstr *ui.AttributedString
Area *ui.Area
+ WM *WindowMap
}
// AREA STRUCTURES END