TreeDataGridSelectionChangedEventArgs
struct · ferroui-controls-treedatagrid · v0.5.0
struct TreeDataGridSelectionChangedEventArgs
The arguments of TreeDataGrid's SelectionChanged
(TreeDataGridSelectionChangedEventArgs): the rows deselected and selected, with their models,
and for a cell selection the cells deselected and selected.
Members
newfrom_rowsfrom_cellsdeselected_indexesselected_indexesdeselected_itemsselected_itemsdeselected_cell_indexesselected_cell_indexes
new
fn new(deselected_indexes: Option<Vec<IndexPath>>, selected_indexes: Option<Vec<IndexPath>>, deselected_items: Option<Vec<Option<BoxedValue>>>, selected_items: Option<Vec<Option<BoxedValue>>>, deselected_cell_indexes: Option<Vec<CellIndex>>, selected_cell_indexes: Option<Vec<CellIndex>>) -> Self
The arguments; a list that is None is empty.
from_rows
fn from_rows(e: &dyn TreeSelectionModelSelectionChangedEventArgs) -> Self
The arguments of a change of rows, from the arguments of the change of a tree selection.
from_cells
fn from_cells(deselected: Vec<CellIndex>, selected: Vec<CellIndex>) -> Self
The arguments of a change of cells (deselectedCellIndexes:, selectedCellIndexes:).
deselected_indexes
fn deselected_indexes(self: &Self) -> Vec<IndexPath>
The indexes of the rows that were removed from the selection.
selected_indexes
fn selected_indexes(self: &Self) -> Vec<IndexPath>
The indexes of the rows that were added to the selection.
deselected_items
fn deselected_items(self: &Self) -> Vec<Option<BoxedValue>>
The models of the rows that were removed from the selection.
selected_items
fn selected_items(self: &Self) -> Vec<Option<BoxedValue>>
The models of the rows that were added to the selection.
deselected_cell_indexes
fn deselected_cell_indexes(self: &Self) -> &[CellIndex]
The cells that were removed from the selection.
selected_cell_indexes
fn selected_cell_indexes(self: &Self) -> &[CellIndex]
The cells that were added to the selection.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedPropertyValueAnyValueClassDefaultsErasedDestructorIntoEitherTreeModelMarkupTypedClonePartialEqDefaultTreeSelectionModelSelectionChangedEventArgs
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.