FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SelectingItemsControlImpl

    trait · ferroui-controls · v0.5.0

    trait SelectingItemsControlImpl: ItemsControlImpl + $crate::Upcast<SelectingItemsControl>
    

    The overridable members introduced by the class.

    View source

    Members

    should_trigger_selection

    fn should_trigger_selection(this: &Self, selectable: &Visual, event_args: &PointerEventArgs) -> bool
    

    Analyses a pointer event received by a selectable element, and determines whether the action should trigger selection.

    Source

    should_trigger_selection_key

    fn should_trigger_selection_key(this: &Self, selectable: &Visual, event_args: &KeyEventArgs) -> bool
    

    Analyses a key event received by a selectable element, and determines whether the action should trigger selection.

    Source

    update_selection_from_event

    fn update_selection_from_event(this: &Self, container: &Ref<Control>, event_args: &dyn IRoutedEventArgs) -> bool
    

    Updates the selection based on an event that may have originated in a container that belongs to the control.

    Returns true if the event originated from a container that belongs to the control and triggered selection; otherwise false.

    Source

    Trait implementations

    Availability

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