diff options
| author | Jeff Carr <[email protected]> | 2019-06-01 11:45:15 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-01 11:45:15 -0700 |
| commit | 1e51d3252b032fd60566834e17973c134e4ad18c (patch) | |
| tree | 7676679b32981556d545c472e9e2e46b1a590c92 /structs.go | |
| parent | ab4e6a8fe909243717edba7c72f09661f4399b31 (diff) | |
change around the concept of "Window" and "Box"
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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 |
