SelectingItemsControlSelectionAdapter
struct · ferroui-controls · v0.5.0
struct SelectingItemsControlSelectionAdapter
Represents the selection adapter contained in the drop-down portion of
an AutoCompleteBox control.
Members
newwith_selectorwith_overridesselector_controlset_selector_controlselected_index_incrementselected_index_decrementon_commitbase_on_commiton_cancelbase_on_cancel
new
fn new() -> Rc<Self>
Initializes a new instance of the
SelectingItemsControlSelectionAdapter class.
with_selector
fn with_selector(selector: Ref<SelectingItemsControl>) -> Rc<Self>
Initializes a new instance of the
SelectingItemsControlSelectionAdapter class with the specified
SelectingItemsControl control.
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.
selector_control
fn selector_control(self: &Self) -> Option<Ref<SelectingItemsControl>>
Gets the underlying SelectingItemsControl control.
set_selector_control
fn set_selector_control(self: &Self, value: Option<Ref<SelectingItemsControl>>)
Sets the underlying SelectingItemsControl control.
selected_index_increment
fn selected_index_increment(self: &Self)
Increments the selected index property of the selector control.
selected_index_decrement
fn selected_index_decrement(self: &Self)
Decrements the selected index property of the selector control.
on_commit
fn on_commit(self: &Self)
Raises the commit event. Overridable: see
SelectingItemsControlSelectionAdapterOverrides::on_commit.
base_on_commit
fn base_on_commit(self: &Self)
The implementation of on_commit of this class,
for overrides.
on_cancel
fn on_cancel(self: &Self)
Raises the cancel event. Overridable: see
SelectingItemsControlSelectionAdapterOverrides::on_cancel.
base_on_cancel
fn base_on_cancel(self: &Self)
The implementation of on_cancel of this class,
for overrides.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherISelectionAdapter
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.