summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/structs.go b/structs.go
index b78130e..6e0aeef 100644
--- a/structs.go
+++ b/structs.go
@@ -13,7 +13,7 @@ import pb "git.wit.com/wit/witProtobuf"
// be the safe way to interact with the GUI
//
var Data GuiDataStructure
-var myAH areaHandler
+var myAH AreaHandler
type GuiDataStructure struct {
State string
@@ -111,6 +111,7 @@ type ButtonMap struct {
Account *pb.Account
VM *pb.Event_VM
+ AH *AreaHandler
Action string // what type of button
custom func (*ButtonMap)
@@ -118,10 +119,10 @@ type ButtonMap struct {
// AREA STRUCTURES START
-type areaHandler struct{
- // buttonFunc func(int, int)
- // closeFunc func(int)
- button *ButtonMap
+type AreaHandler struct{
+ Button *ButtonMap
+ Attrstr *ui.AttributedString
+ Area *ui.Area
}
// AREA STRUCTURES END