1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Merge branch 'master' into addLogging

This commit is contained in:
Chris Cummer
2018-06-08 10:40:00 -07:00
committed by GitHub
23 changed files with 14 additions and 84 deletions

View File

@@ -3,4 +3,5 @@ package wtf
type Enabler interface {
Disabled() bool
Enabled() bool
Disable()
}

View File

@@ -61,6 +61,10 @@ func (widget *TextWidget) Enabled() bool {
return widget.enabled
}
func (widget *TextWidget) Disable() {
widget.enabled = false
}
func (widget *TextWidget) Focusable() bool {
return widget.enabled && widget.focusable
}