summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-02 15:19:53 -0700
committerJeff Carr <[email protected]>2019-06-02 15:19:53 -0700
commitd6cc47ab94bf294b69116f9479b49f0302bfc7b5 (patch)
treed6652d07ea5c1a9a004caa110848d1a509aad54f /structs.go
parent16008fefad4573af5e0c5bc9909f0e5114863ec6 (diff)
almost complete 'CLEAN'. yet more code refactoring
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/structs.go b/structs.go
index 8ad240e..982b6a0 100644
--- a/structs.go
+++ b/structs.go
@@ -8,8 +8,6 @@ import _ "github.com/andlabs/ui/winmanifest"
import pb "git.wit.com/wit/witProtobuf"
-// THIS IS CLEAN
-
//
// All GUI Data Structures and functions that are external
// If you need cross platform support, these might only
@@ -110,15 +108,16 @@ type GuiBox struct {
// the user clicks it. You could probably
// call this 'GuiMouseClick'
type GuiButton struct {
+ Name string // field for human readable name
Action string // what type of button
Box *GuiBox // what box the button click was in
- GW *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?
// a callback function for the main application
- custom func (*GuiButton)
+ Custom func (*GuiButton)
// andlabs/ui abstraction mapping
B *ui.Button