pub trait TreeViewImpl: ItemsControlImpl + Upcast<TreeView> {
// Provided methods
fn should_trigger_selection(
this: &Self,
selectable: &Visual,
event_args: &PointerEventArgs,
) -> bool { ... }
fn should_trigger_selection_key(
this: &Self,
selectable: &Visual,
event_args: &KeyEventArgs,
) -> bool { ... }
fn update_selection_from_event(
this: &Self,
container: &Ref<Control>,
event_args: &dyn IRoutedEventArgs,
) -> bool { ... }
}Expand description
The overridable members introduced by the class.
Provided Methods§
Sourcefn should_trigger_selection(
this: &Self,
selectable: &Visual,
event_args: &PointerEventArgs,
) -> bool
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 on press, on release, or not at all.
Sourcefn should_trigger_selection_key(
this: &Self,
selectable: &Visual,
event_args: &KeyEventArgs,
) -> bool
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.
Sourcefn update_selection_from_event(
this: &Self,
container: &Ref<Control>,
event_args: &dyn IRoutedEventArgs,
) -> bool
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".