SelectableMixin
struct · ferroui-controls · v0.5.0
struct SelectableMixin
Adds selectable functionality to control classes.
The SelectableMixin adds behavior to a control which can be selected.
It adds the following behavior:
- Adds a ":selected" class when the control is selected.
- Raises a
SelectingItemsControl::is_selected_changed_eventwhen the selected state changes.
Members
attach
fn attach<TControl: ObjectType + Upcast<Control>>(is_selected: &'static StyledProperty<bool>)
Initializes the mixin for the control class TControl.
is_selected is the IsSelected property.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.