From 1e51d3252b032fd60566834e17973c134e4ad18c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 1 Jun 2019 11:45:15 -0700 Subject: change around the concept of "Window" and "Box" Signed-off-by: Jeff Carr --- structs.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index 430f136..e03145d 100644 --- a/structs.go +++ b/structs.go @@ -73,14 +73,23 @@ type GuiData struct { // type GuiWindow struct { Action string - BoxMap map[string]*GuiBox Width int Height int + mainbox *ui.Box + + // the callback function to make the window contents + MakeWindow func(*GuiWindow) *GuiBox + + // the components of the window + BoxMap map[string]*GuiBox + EntryMap map[string]*GuiEntry + Area *GuiArea + ButtonMap map[*GuiButton][]func (*GuiButton) + // andlabs/ui abstraction mapping UiWindow *ui.Window UiTab *ui.Tab // if this != nil, the window is 'tabbed' - MakeTab func(*GuiWindow) *GuiBox } @@ -122,6 +131,7 @@ type GuiEntry struct { B *GuiButton Box *GuiBox + Account *pb.Account VM *pb.Event_VM -- cgit v1.2.3