FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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_event when the selected state changes.

    View source

    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.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.