From d6cc47ab94bf294b69116f9479b49f0302bfc7b5 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 2 Jun 2019 15:19:53 -0700 Subject: almost complete 'CLEAN'. yet more code refactoring Signed-off-by: Jeff Carr --- structs.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'structs.go') 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 -- cgit v1.2.3