SelectingItemsControlAutomationPeer
struct · ferroui-controls · v0.5.0
struct SelectingItemsControlAutomationPeer
An automation peer which represents a SelectingItemsControl.
Members
TYPEto_refget_selection_coreget_selection_mode_coreowner_property_changedowner_selection_changedconstructcan_select_multipleis_selection_requiredget_selection
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<SelectingItemsControlAutomationPeer>
Returns a strong reference to this object.
get_selection_core
fn get_selection_core(self: &Self) -> Option<Vec<Ref<AutomationPeer>>>
Gets the peers of the selected items, or None if there are
none.
get_selection_mode_core
fn get_selection_mode_core(self: &Self) -> SelectionMode
Gets the selection mode of the owner.
owner_property_changed
fn owner_property_changed(self: &Self, e: &FerroPropertyChangedEventArgs<'_>)
Called when a property of the owner has changed.
owner_selection_changed
fn owner_selection_changed(self: &Self, e: &dyn SelectionModelSelectionChangedEventArgs)
Called when the selection of the owner has changed.
construct
fn construct(owner: &SelectingItemsControl) -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
The class is abstract: it is the base of the peers of the selecting
items control classes.
can_select_multiple
fn can_select_multiple(self: &Self) -> bool
Gets a value that indicates whether more than one item can be selected concurrently (the selection provider contract).
is_selection_required
fn is_selection_required(self: &Self) -> bool
Gets a value that indicates whether at least one item is required to be selected (the selection provider contract).
get_selection
fn get_selection(self: &Self) -> Vec<Ref<AutomationPeer>>
Retrieves the peer of each item that is selected (the selection provider contract).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeAutomationPeerImplExtControlAutomationPeerImplExtItemsControlAutomationPeerImplExtSelectingItemsControlAutomationPeerImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<SelectingItemsControlAutomationPeer>StaticTypeObjectTypeSubclassable<T>FerroObjectImplAutomationPeerImplControlAutomationPeerImplItemsControlAutomationPeerImplSelectingItemsControlAutomationPeerImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.