FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SelectingItemsControlAutomationPeer

    struct · ferroui-controls · v0.5.0

    struct SelectingItemsControlAutomationPeer
    

    An automation peer which represents a SelectingItemsControl.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<SelectingItemsControlAutomationPeer>
    

    Returns a strong reference to this object.

    Source

    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.

    Source

    get_selection_mode_core

    fn get_selection_mode_core(self: &Self) -> SelectionMode
    

    Gets the selection mode of the owner.

    Source

    owner_property_changed

    fn owner_property_changed(self: &Self, e: &FerroPropertyChangedEventArgs<'_>)
    

    Called when a property of the owner has changed.

    Source

    owner_selection_changed

    fn owner_selection_changed(self: &Self, e: &dyn SelectionModelSelectionChangedEventArgs)
    

    Called when the selection of the owner has changed.

    Source

    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.

    Source

    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).

    Source

    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).

    Source

    get_selection

    fn get_selection(self: &Self) -> Vec<Ref<AutomationPeer>>
    

    Retrieves the peer of each item that is selected (the selection provider contract).

    Source

    Trait implementations

    Availability

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