TreeDataGridSourcePresentation
struct · ferroui-controls-treedatagrid · v0.5.0
struct TreeDataGridSourcePresentation
The presentation of a core source (TreeDataGridPresentation<TModel>).
Members
newofmodelpresentation_columnspresentation_rowsis_suspendedis_disposedsuspend_presentationresume_presentationdispose_presentationget_modelrow_selectioncell_selectionshared
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.
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)).
model
fn model(self: &Self) -> &Rc<dyn ITreeDataGridSource>
The source presented (Model).
presentation_columns
fn presentation_columns(self: &Self) -> &Rc<PresentationColumns>
The view columns (Columns), as the presentation's own type.
presentation_rows
fn presentation_rows(self: &Self) -> Rc<TreeDataGridRows>
The rows (Rows), as the presentation's own type.
is_suspended
fn is_suspended(self: &Self) -> bool
Whether the presentation is suspended (detached from its control).
is_disposed
fn is_disposed(self: &Self) -> bool
Whether the presentation is disposed.
suspend_presentation
fn suspend_presentation(self: &Self)
Stops following the source while the control is detached (Suspend).
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.
dispose_presentation
fn dispose_presentation(self: &Self)
Releases the view columns and stops following the source (Dispose).
get_model
fn get_model(self: &Self, column: &ColumnRef) -> Option<Rc<dyn CoreColumn>>
The core column of the view column column (GetModel).
row_selection
fn row_selection(self: &Self) -> Option<Rc<dyn ITreeSelectionModel>>
The row selection the presentation presents, if it is one (_selection).
cell_selection
fn cell_selection(self: &Self) -> Option<Rc<dyn IUntypedCellSelection>>
The cell selection the presentation presents, if it is one (_cellSelection).
shared
fn shared(self: &Self) -> Rc<Self>
The shared presentation.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherINotifyPropertyChangedTreeDataGridPresentationDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.