summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-05 10:01:36 -0700
committerJeff Carr <[email protected]>2019-06-05 10:01:36 -0700
commitba93e331fdc2a7ec883ac2f9e954e60d99f24285 (patch)
tree9398cafef120a380722bdf84ec5bf6d9a005fe08 /structs.go
parent224740b4b8f346eba159004c82ed54ce52c2adb2 (diff)
reimplement the color button
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/structs.go b/structs.go
index 656ece3..d4f41f2 100644
--- a/structs.go
+++ b/structs.go
@@ -64,6 +64,7 @@ type GuiWindow struct {
Width int
Height int
Axis int // does it add items to the X or Y axis
+ TabNumber int // the andlabs/ui tab index
// the callback function to make the window contents
MakeWindow func(*GuiWindow) *GuiBox
@@ -100,10 +101,12 @@ type GuiButton struct {
// a callback function for the main application
Custom func (*GuiButton)
Values interface {}
+ Color color.RGBA
// andlabs/ui abstraction mapping
B *ui.Button
FB *ui.FontButton
+ CB *ui.ColorButton
}
// text entry fields