summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-01-19 03:45:56 -0600
committerJeff Carr <[email protected]>2024-01-19 03:45:56 -0600
commit10f7fe14ced1720198993cce671aa7370c16e5ab (patch)
tree69b9feb19ede9c45d149b44f6528f2b4fc83faf4
parent0f9d06eb2fb95c51ae9e7115ee8632432a3aa949 (diff)
add Checked to the state
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--action.go1
-rw-r--r--state.go3
2 files changed, 4 insertions, 0 deletions
diff --git a/action.go b/action.go
index 7db5371..df634e2 100644
--- a/action.go
+++ b/action.go
@@ -54,6 +54,7 @@ const (
GetText
SetText
AddText
+ Checked
Show
Hide
Enable
diff --git a/state.go b/state.go
index bb460b4..ca0a2af 100644
--- a/state.go
+++ b/state.go
@@ -20,6 +20,9 @@ type State struct {
// how to arrange widgets
Direction Orientation
+ // for widgets that have on/off things
+ Checked bool
+
//
// This is complicated. We must send a list of all the widgets
// in the binary tree to the toolkits because some toolkits