FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    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.

    Source

    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.

    Source

    from_cells

    fn from_cells(deselected: Vec<CellIndex>, selected: Vec<CellIndex>) -> Self
    

    The arguments of a change of cells (deselectedCellIndexes:, selectedCellIndexes:).

    Source

    deselected_indexes

    fn deselected_indexes(self: &Self) -> Vec<IndexPath>
    

    The indexes of the rows that were removed from the selection.

    Source

    selected_indexes

    fn selected_indexes(self: &Self) -> Vec<IndexPath>
    

    The indexes of the rows that were added to the selection.

    Source

    deselected_items

    fn deselected_items(self: &Self) -> Vec<Option<BoxedValue>>
    

    The models of the rows that were removed from the selection.

    Source

    selected_items

    fn selected_items(self: &Self) -> Vec<Option<BoxedValue>>
    

    The models of the rows that were added to the selection.

    Source

    deselected_cell_indexes

    fn deselected_cell_indexes(self: &Self) -> &[CellIndex]
    

    The cells that were removed from the selection.

    Source

    selected_cell_indexes

    fn selected_cell_indexes(self: &Self) -> &[CellIndex]
    

    The cells that were added to the selection.

    Source

    Trait implementations

    Availability

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