summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-01 11:45:15 -0700
committerJeff Carr <[email protected]>2019-06-01 11:45:15 -0700
commit1e51d3252b032fd60566834e17973c134e4ad18c (patch)
tree7676679b32981556d545c472e9e2e46b1a590c92 /structs.go
parentab4e6a8fe909243717edba7c72f09661f4399b31 (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.go14
1 files changed, 12 insertions, 2 deletions
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