From 63d561351b27e675c4159c2bc36e76ffb4376247 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 31 May 2019 17:37:53 -0700 Subject: lots of changes to track windows and tabs Signed-off-by: Jeff Carr --- structs.go | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index 929ad17..08ca8af 100644 --- a/structs.go +++ b/structs.go @@ -71,15 +71,13 @@ type GuiData struct { // type GuiWindow struct { Action string - Area *GuiArea // should be moved to GuiBox - - C *pb.Config +// Area *GuiArea // should be moved to GuiBox + BoxMap map[string]*GuiBox + Width int + Height int - W *ui.Window + UiWindow *ui.Window UiTab *ui.Tab // if this != nil, the window is 'tabbed' - BoxMap map[string]*GuiBox -// Box1 *ui.Box -// Box2 *ui.Box } @@ -91,7 +89,7 @@ type GuiButton struct { Action string // what type of button Box *GuiBox // what box the button click was in Area *GuiArea // indicates the button click was in an Area - WM *GuiWindow // what window the button click was in (redundant?) + GW *GuiWindow // what window the button click was in (redundant?) Account *pb.Account // associated with what account? VM *pb.Event_VM // associated with which VM? -- cgit v1.2.3