summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-09 05:58:53 -0600
committerJeff Carr <[email protected]>2025-02-09 05:58:53 -0600
commitbc55a8b33b15a6a905835790ce818c28d10ebdb5 (patch)
treeaeeddaec5b350167373ebb4e17db9b18cd987d3f
parentcbaa1c37132e73d4fd112418a7544ae71b46dfe0 (diff)
add IsEnabled()v0.22.8
-rw-r--r--common.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/common.go b/common.go
index f59ddb8..6493a13 100644
--- a/common.go
+++ b/common.go
@@ -67,6 +67,10 @@ func (n *Node) Hidden() bool {
return n.State.Hidden
}
+func (n *Node) IsEnabled() bool {
+ return n.State.Enable
+}
+
/* avoid this function name as confusing
func (n *Node) GetText() string { // BAD
return widget.GetString(n.State.Value)