summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-05-31 17:37:53 -0700
committerJeff Carr <[email protected]>2019-05-31 17:37:53 -0700
commit63d561351b27e675c4159c2bc36e76ffb4376247 (patch)
tree4e9361107cee0c7e3714b5accb74cc7d0840550e /structs.go
parentb5d51c314debff42cf479b165f400d84a6b72f7e (diff)
lots of changes to track windows and tabs
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go14
1 files changed, 6 insertions, 8 deletions
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?