FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    NavigationViewAutomationPeer

    struct · ferroui-controls · v0.5.0

    struct NavigationViewAutomationPeer
    

    The automation peer of a NavigationView: the selection pattern over its realized containers, as WinUI's peer. The peer holds its owner weakly.

    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<NavigationViewAutomationPeer>
    

    Returns a strong reference to this object.

    Source

    new

    fn new(owner: &NavigationView) -> Ref<Self>
    

    Creates the peer of owner.

    Source

    owner

    fn owner(self: &Self) -> Ref<NavigationView>
    

    Gets the navigation view of the peer.

    Source

    get_selection

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

    Gets the peer of the container of the selected item (GetSelection).

    Source

    can_select_multiple

    fn can_select_multiple(self: &Self) -> bool
    

    One item at most is selected.

    Source

    is_selection_required

    fn is_selection_required(self: &Self) -> bool
    

    No selection is required.

    Source

    Trait implementations

    Availability

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