Enabled returns if the WidgetBase is enabled for user interaction.
()
| 215 | |
| 216 | // Enabled returns if the WidgetBase is enabled for user interaction. |
| 217 | func (wb *WidgetBase) Enabled() bool { |
| 218 | if wb.parent != nil { |
| 219 | return wb.enabled && wb.parent.Enabled() |
| 220 | } |
| 221 | |
| 222 | return wb.enabled |
| 223 | } |
| 224 | |
| 225 | // Font returns the Font of the WidgetBase. |
| 226 | // |