TreeViewImpl
trait · ferroui-controls · v0.5.0
trait TreeViewImpl: ItemsControlImpl + $crate::Upcast<TreeView>
The overridable members introduced by the class.
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 on press, on release, or not at all.
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.
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.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.