FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TreeDataGridSourcePresentation

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct TreeDataGridSourcePresentation
    

    The presentation of a core source (TreeDataGridPresentation<TModel>).

    View source

    Members

    new

    fn new(model: Rc<dyn ITreeDataGridSource>, options: Option<Rc<TreeDataGridPresentationOptions>>) -> Rc<Self>
    

    The presentation of model with options (the default options when None).

    Panics

    When a column of the source has a presentation key with no registered presentation, or the source's selection is not a row or cell selection of the core.

    Source

    of

    fn of<M: TreeModel, S: ITreeDataGridSourceOf<M> + 'static>(model: Rc<S>, options: Option<Rc<TreeDataGridPresentationOptions>>) -> Rc<Self>
    

    The presentation of a typed source, registering its model and source types (new TreeDataGridPresentation<TModel>(model, options)).

    Source

    model

    fn model(self: &Self) -> &Rc<dyn ITreeDataGridSource>
    

    The source presented (Model).

    Source

    presentation_columns

    fn presentation_columns(self: &Self) -> &Rc<PresentationColumns>
    

    The view columns (Columns), as the presentation's own type.

    Source

    presentation_rows

    fn presentation_rows(self: &Self) -> Rc<TreeDataGridRows>
    

    The rows (Rows), as the presentation's own type.

    Source

    is_suspended

    fn is_suspended(self: &Self) -> bool
    

    Whether the presentation is suspended (detached from its control).

    Source

    is_disposed

    fn is_disposed(self: &Self) -> bool
    

    Whether the presentation is disposed.

    Source

    suspend_presentation

    fn suspend_presentation(self: &Self)
    

    Stops following the source while the control is detached (Suspend).

    Source

    resume_presentation

    fn resume_presentation(self: &Self)
    

    Follows the source again after the control is attached (Resume).

    Panics

    When a column of the source has a presentation key with no registered presentation.

    Source

    dispose_presentation

    fn dispose_presentation(self: &Self)
    

    Releases the view columns and stops following the source (Dispose).

    Source

    get_model

    fn get_model(self: &Self, column: &ColumnRef) -> Option<Rc<dyn CoreColumn>>
    

    The core column of the view column column (GetModel).

    Source

    row_selection

    fn row_selection(self: &Self) -> Option<Rc<dyn ITreeSelectionModel>>
    

    The row selection the presentation presents, if it is one (_selection).

    Source

    cell_selection

    fn cell_selection(self: &Self) -> Option<Rc<dyn IUntypedCellSelection>>
    

    The cell selection the presentation presents, if it is one (_cellSelection).

    Source

    shared

    fn shared(self: &Self) -> Rc<Self>
    

    The shared presentation.

    Source

    Trait implementations

    Availability

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