From 73804529267500c49f6321d2fb33c028c2c2fbef Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 29 May 2019 11:48:32 -0700 Subject: more dereference improvements Signed-off-by: Jeff Carr --- structs.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index 8867617..6826009 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 window1 *WindowMap type GuiDataStructure struct { State string @@ -59,15 +59,11 @@ type GuiDataStructure struct { // stuff for the splash screen / setup tabs cloudWindow *ui.Window - cloudTab *ui.Tab cloudBox *ui.Box smallBox *ui.Box myAH *AreaHandler tabcount int - - // stuff for the 'area' -// fontButton *ui.FontButton } type TableColumnData struct { @@ -98,6 +94,14 @@ type EntryMap struct { // custom func (*EntryMap) } +type WindowMap struct { + W *ui.Window + T *ui.Tab + A *ui.Area + + AH *AreaHandler +} + type ButtonMap struct { B *ui.Button FB *ui.FontButton @@ -119,8 +123,6 @@ type AreaHandler struct{ Button *ButtonMap Attrstr *ui.AttributedString Area *ui.Area -// FontButton *ui.FontButton -// FB func () *ButtonMap } // AREA STRUCTURES END -- cgit v1.2.3