From 5336ee2444a831e10600f8573d4460e7d7e3f9e8 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 2 Jun 2019 22:22:04 -0700 Subject: make a buttonMap Signed-off-by: Jeff Carr --- structs.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'structs.go') diff --git a/structs.go b/structs.go index ec5c04e..af5264c 100644 --- a/structs.go +++ b/structs.go @@ -22,8 +22,6 @@ type GuiConfig struct { } type GuiData struct { - State string // used like a state machine - // a fallback default function to handle mouse events // if nothing else is defined to handle them MouseClick func(*GuiButton) @@ -39,6 +37,7 @@ type GuiData struct { // This has to work this way because of how // andlabs/ui & andlabs/libui work AllButtons []*GuiButton + buttonMap map[*ui.Button]*GuiButton } // @@ -61,7 +60,6 @@ type GuiData struct { // type GuiWindow struct { Name string // field for human readable name -// Action string Width int Height int @@ -108,7 +106,6 @@ type GuiButton struct { // text entry fields type GuiEntry struct { Name string // field for human readable name -// Action string // what type of button Edit bool Last string // the last value Normalize func (string) string // function to 'normalize' the data -- cgit v1.2.3