StateIs returns whether the widget has the given [states.States] flag set.
(state states.States)
| 13 | |
| 14 | // StateIs returns whether the widget has the given [states.States] flag set. |
| 15 | func (wb *WidgetBase) StateIs(state states.States) bool { |
| 16 | return wb.Styles.State.HasFlag(state) |
| 17 | } |
| 18 | |
| 19 | // AbilityIs returns whether the widget has the given [abilities.Abilities] flag set. |
| 20 | func (wb *WidgetBase) AbilityIs(able abilities.Abilities) bool { |
no test coverage detected