summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)