summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-02 11:02:14 -0700
committerJeff Carr <[email protected]>2019-06-02 11:02:14 -0700
commitfaf1266c20524ef4a006fac417cb8df45ca28298 (patch)
tree9d817866040bd1fec636d5e4460ad205152e9506 /structs.go
parent41448f32f694da7d74c220795715b527855a37dc (diff)
doesn't crash
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go21
1 files changed, 10 insertions, 11 deletions
diff --git a/structs.go b/structs.go
index 360d59d..8ad240e 100644
--- a/structs.go
+++ b/structs.go
@@ -95,6 +95,15 @@ type GuiWindow struct {
UiTab *ui.Tab // if this != nil, the window is 'tabbed'
}
+// GuiBox is any type of ui.Hbox or ui.Vbox
+// There can be lots of these for each GuiWindow
+type GuiBox struct {
+ Window *GuiWindow
+ Name string
+
+ // andlabs/ui abstraction mapping
+ UiBox *ui.Box
+}
// Note: every mouse click is handled
// as a 'Button' regardless of where
@@ -103,7 +112,6 @@ type GuiWindow struct {
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
GW *GuiWindow // what window the button click was in (redundant?)
Account *pb.Account // associated with what account?
@@ -117,16 +125,7 @@ type GuiButton struct {
FB *ui.FontButton
}
-// GuiBox is any type of ui.Hbox or ui.Vbox
-// There can be lots of these for each GuiWindow
-type GuiBox struct {
- Window *GuiWindow
-// EntryMap map[string]*GuiEntry
-
- // andlabs/ui abstraction mapping
- UiBox *ui.Box
-}
-
+// text entry fields
type GuiEntry struct {
Action string // what type of button
Edit bool