SetSelected sets the [states.Selected] flag to given value for the entire Widget and calls [WidgetBase.Restyle] to apply any resultant style changes.
(sel bool)
| 34 | // SetSelected sets the [states.Selected] flag to given value for the entire Widget |
| 35 | // and calls [WidgetBase.Restyle] to apply any resultant style changes. |
| 36 | func (wb *WidgetBase) SetSelected(sel bool) *WidgetBase { |
| 37 | wb.SetState(sel, states.Selected) |
| 38 | wb.Restyle() |
| 39 | return wb |
| 40 | } |
| 41 | |
| 42 | // CanFocus returns whether this node can receive keyboard focus. |
| 43 | func (wb *WidgetBase) CanFocus() bool { |
no test coverage detected