add IsEnabled()
This commit is contained in:
parent
cbaa1c3713
commit
bc55a8b33b
|
@ -67,6 +67,10 @@ func (n *Node) Hidden() bool {
|
||||||
return n.State.Hidden
|
return n.State.Hidden
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (n *Node) IsEnabled() bool {
|
||||||
|
return n.State.Enable
|
||||||
|
}
|
||||||
|
|
||||||
/* avoid this function name as confusing
|
/* avoid this function name as confusing
|
||||||
func (n *Node) GetText() string { // BAD
|
func (n *Node) GetText() string { // BAD
|
||||||
return widget.GetString(n.State.Value)
|
return widget.GetString(n.State.Value)
|
||||||
|
|
Loading…
Reference in New Issue