FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SelectingItemsControlSelectionAdapter

    struct · ferroui-controls · v0.5.0

    struct SelectingItemsControlSelectionAdapter
    

    Represents the selection adapter contained in the drop-down portion of an AutoCompleteBox control.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Initializes a new instance of the SelectingItemsControlSelectionAdapter class.

    Source

    with_selector

    fn with_selector(selector: Ref<SelectingItemsControl>) -> Rc<Self>
    

    Initializes a new instance of the SelectingItemsControlSelectionAdapter class with the specified SelectingItemsControl control.

    Source

    with_overrides

    fn with_overrides(selector: Option<Ref<SelectingItemsControl>>, overrides: Rc<dyn SelectingItemsControlSelectionAdapterOverrides>) -> Rc<Self>
    

    Creates an adapter whose overridable members are replaced by overrides: the form a class deriving from the adapter takes.

    Source

    selector_control

    fn selector_control(self: &Self) -> Option<Ref<SelectingItemsControl>>
    

    Gets the underlying SelectingItemsControl control.

    Source

    set_selector_control

    fn set_selector_control(self: &Self, value: Option<Ref<SelectingItemsControl>>)
    

    Sets the underlying SelectingItemsControl control.

    Source

    selected_index_increment

    fn selected_index_increment(self: &Self)
    

    Increments the selected index property of the selector control.

    Source

    selected_index_decrement

    fn selected_index_decrement(self: &Self)
    

    Decrements the selected index property of the selector control.

    Source

    on_commit

    fn on_commit(self: &Self)
    

    Raises the commit event. Overridable: see SelectingItemsControlSelectionAdapterOverrides::on_commit.

    Source

    base_on_commit

    fn base_on_commit(self: &Self)
    

    The implementation of on_commit of this class, for overrides.

    Source

    on_cancel

    fn on_cancel(self: &Self)
    

    Raises the cancel event. Overridable: see SelectingItemsControlSelectionAdapterOverrides::on_cancel.

    Source

    base_on_cancel

    fn base_on_cancel(self: &Self)
    

    The implementation of on_cancel of this class, for overrides.

    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
    • ISelectionAdapter

    Availability

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