FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TreeDataGridPresentation

    trait · ferroui-controls-treedatagrid · v0.5.0

    trait TreeDataGridPresentation: INotifyPropertyChanged + Any
    

    The presentation of a source to the control (TreeDataGridPresentation).

    View source

    Members

    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.

    Source

    can_select_multiple

    fn can_select_multiple(self: &Self) -> bool
    

    Source

    select

    fn select(self: &Self, index: &IndexPath, replace: bool)
    

    Source

    deselect

    fn deselect(self: &Self, index: &IndexPath)
    

    Source

    is_selected

    fn is_selected(self: &Self, index: &IndexPath) -> bool
    

    Source

    columns

    fn columns(self: &Self) -> Rc<dyn IColumns>
    

    Source

    rows

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

    Source

    is_hierarchical

    fn is_hierarchical(self: &Self) -> bool
    

    Source

    is_sorted

    fn is_sorted(self: &Self) -> bool
    

    Source

    selection_interaction

    fn selection_interaction(self: &Self) -> Option<Rc<dyn ITreeDataGridSelectionInteraction>>
    

    Source

    selected_items

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

    Source

    selected_indexes

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

    Source

    add_sorted

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

    Sorted.

    Source

    remove_sorted

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

    Source

    sort_by

    fn sort_by(self: &Self, column: &ColumnRef, direction: ListSortDirection) -> bool
    

    Source

    move_rows

    fn move_rows(self: &Self, indexes: &[IndexPath], target: &IndexPath, position: TreeDataGridRowDropPosition, effects: DragDropEffects)
    

    Source

    dispose

    fn dispose(self: &Self)
    

    Source

    suspend

    fn suspend(self: &Self)
    

    Stops following the source while the control is detached.

    Source

    resume

    fn resume(self: &Self)
    

    Source

    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.

    Source

    remove_native_selection_changed

    fn remove_native_selection_changed(self: &Self, _token: u64)
    

    Source

    apply_selection_mode

    fn apply_selection_mode(self: &Self, _mode: TreeDataGridSelectionMode)
    

    Applies the selection mode of the control (ApplySelectionMode).

    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.