FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ITreeDataGridSource

    trait · ferroui-treedatagrid-core · v0.5.0

    trait ITreeDataGridSource: INotifyPropertyChanged + Any
    

    A source of a tree data grid, untyped (ITreeDataGridSource).

    View source

    Members

    column_count

    fn column_count(self: &Self) -> usize
    

    The number of columns.

    Source

    column

    fn column(self: &Self, index: usize) -> Rc<dyn IColumn>
    

    The column at index, untyped.

    Source

    columns_untyped

    fn columns_untyped(self: &Self) -> Vec<Rc<dyn IColumn>>
    

    The columns, untyped.

    Source

    rows

    fn rows(self: &Self) -> Rc<dyn IRows>
    

    The rows.

    Source

    selection

    fn selection(self: &Self) -> Option<Rc<dyn ITreeDataGridSelection>>
    

    The selection (a row selection is created on first access unless one was set).

    Source

    set_selection

    fn set_selection(self: &Self, value: Option<Rc<dyn ITreeDataGridSelection>>)
    

    Sets the selection, whose source must be the items of the source.

    Source

    is_hierarchical

    fn is_hierarchical(self: &Self) -> bool
    

    Source

    is_sorted

    fn is_sorted(self: &Self) -> bool
    

    Source

    items_untyped

    fn items_untyped(self: &Self) -> UntypedModels
    

    The items, untyped.

    Source

    get_model_children_untyped

    fn get_model_children_untyped(self: &Self, model: &BoxedValue) -> Option<Vec<BoxedValue>>
    

    The child models of a model, untyped (GetModelChildren(object)).

    Source

    sort_by

    fn sort_by(self: &Self, column: Option<&dyn IColumn>, direction: ListSortDirection) -> bool
    

    Sorts the rows by column (a column of the source); false when the column is not one.

    Source

    clear_sort

    fn clear_sort(self: &Self)
    

    Source

    add_sorted

    fn add_sorted(self: &Self, handler: Rc<dyn Fn() -> ()>) -> u64
    

    Subscribes to Sorted.

    Source

    remove_sorted

    fn remove_sorted(self: &Self, token: u64)
    

    Source

    move_rows

    fn move_rows(self: &Self, source: &dyn ITreeDataGridSource, indexes: &[IndexPath], target_index: &IndexPath, position: RowDropPosition, effects: RowMoveEffects)
    

    Moves the rows at indexes of source to target_index (drag and drop).

    Source

    as_any

    fn as_any(self: &Self) -> &dyn Any
    

    Source

    Trait implementations

    Availability

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