add IsEnabled()

This commit is contained in:
Jeff Carr 2025-02-09 05:58:53 -06:00
parent cbaa1c3713
commit bc55a8b33b
1 changed files with 4 additions and 0 deletions

View File

@ -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)