TreeDataGridPresentation
trait · ferroui-controls-treedatagrid · v0.5.0
trait TreeDataGridPresentation: INotifyPropertyChanged + Any
The presentation of a source to the control (TreeDataGridPresentation).
Members
source_identitycan_select_multipleselectdeselectis_selectedcolumnsrowsis_hierarchicalis_sortedselection_interactionselected_itemsselected_indexesadd_sortedremove_sortedsort_bymove_rowsdisposesuspendresumeadd_native_selection_changedremove_native_selection_changedapply_selection_modeas_any
source_identity
fn source_identity(self: &Self) -> Rc<dyn Any>
The object the presentation presents (the source), to tell whether two presentations show the same source.
can_select_multiple
fn can_select_multiple(self: &Self) -> bool
select
fn select(self: &Self, index: &IndexPath, replace: bool)
deselect
fn deselect(self: &Self, index: &IndexPath)
is_selected
fn is_selected(self: &Self, index: &IndexPath) -> bool
columns
fn columns(self: &Self) -> Rc<dyn IColumns>
rows
fn rows(self: &Self) -> Rc<dyn ITreeDataGridRows>
is_hierarchical
fn is_hierarchical(self: &Self) -> bool
is_sorted
fn is_sorted(self: &Self) -> bool
selection_interaction
fn selection_interaction(self: &Self) -> Option<Rc<dyn ITreeDataGridSelectionInteraction>>
selected_items
fn selected_items(self: &Self) -> Option<Vec<Option<BoxedValue>>>
selected_indexes
fn selected_indexes(self: &Self) -> Option<Vec<IndexPath>>
add_sorted
fn add_sorted(self: &Self, handler: Rc<dyn Fn() -> ()>) -> u64
Sorted.
remove_sorted
fn remove_sorted(self: &Self, token: u64)
sort_by
fn sort_by(self: &Self, column: &ColumnRef, direction: ListSortDirection) -> bool
move_rows
fn move_rows(self: &Self, indexes: &[IndexPath], target: &IndexPath, position: TreeDataGridRowDropPosition, effects: DragDropEffects)
dispose
fn dispose(self: &Self)
suspend
fn suspend(self: &Self)
Stops following the source while the control is detached.
resume
fn resume(self: &Self)
add_native_selection_changed
fn add_native_selection_changed(self: &Self, _handler: Rc<dyn Fn(&TreeDataGridSelectionChangedEventArgs) -> ()>) -> u64
NativeSelectionChanged: the selection of a source whose selection the control does not
interact with directly changed.
remove_native_selection_changed
fn remove_native_selection_changed(self: &Self, _token: u64)
apply_selection_mode
fn apply_selection_mode(self: &Self, _mode: TreeDataGridSelectionMode)
Applies the selection mode of the control (ApplySelectionMode).
as_any
fn as_any(self: &Self) -> &dyn Any
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.