FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TreeDataGridCellsPresenter

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct TreeDataGridCellsPresenter
    

    Presents the cells of a TreeDataGridRow, realizing only the cells of the columns in the viewport.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<TreeDataGridCellsPresenter>
    

    Returns a strong reference to this object.

    Source

    measure_element

    fn measure_element(self: &Self, index: i32, element: &Ref<Control>, available_size: Size) -> Size
    

    Measures the cell of the column at index (MeasureElement): the measure of the columnar presenters, which reports the size to the columns.

    Source

    element_factory_property

    fn element_factory_property() -> &'static DirectProperty<TreeDataGridCellsPresenter, Option<Rc<TreeDataGridElementFactory>>>
    

    Defines the ElementFactory property.

    Source

    items_property

    fn items_property() -> &'static DirectProperty<TreeDataGridCellsPresenter, Option<Rc<dyn IColumns>>>
    

    Defines the Items property: the columns.

    Source

    rows_property

    fn rows_property() -> &'static DirectProperty<TreeDataGridCellsPresenter, Option<Rc<dyn ITreeDataGridRows>>>
    

    Defines the Rows property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    presenter_base

    fn presenter_base(self: &Self) -> &TreeDataGridPresenterBase
    

    The state of the presenter base.

    Source

    element_factory

    fn element_factory(self: &Self) -> Option<Rc<TreeDataGridElementFactory>>
    

    The factory of the cells.

    Source

    set_element_factory

    fn set_element_factory(self: &Self, value: Option<Rc<TreeDataGridElementFactory>>)
    

    Source

    items

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

    The columns whose cells the presenter shows.

    Source

    set_items

    fn set_items(self: &Self, value: Option<Rc<dyn IColumns>>)
    

    Source

    rows

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

    The rows that realize the cell models.

    Source

    set_rows

    fn set_rows(self: &Self, value: Option<Rc<dyn ITreeDataGridRows>>)
    

    Source

    row_index

    fn row_index(self: &Self) -> i32
    

    The index of the row the presenter shows the cells of, or -1 when it is not realized.

    Source

    realized_elements

    fn realized_elements(self: &Self) -> Vec<Option<Ref<Control>>>
    

    The realized cells, with an empty slot for each column of the realized range that has no cell yet (RealizedElements).

    Source

    is_layout_in_progress

    fn is_layout_in_progress(self: &Self) -> bool
    

    Whether the presenter is in its measure or arrange pass.

    Source

    bring_into_view

    fn bring_into_view(self: &Self, index: i32, rect: Option<Rect>) -> Option<Ref<Control>>
    

    Brings the cell of the column at index into view (BringIntoView).

    Source

    get_realized_elements

    fn get_realized_elements(self: &Self) -> Vec<Ref<Control>>
    

    The realized cells (GetRealizedElements).

    Source

    try_get_element

    fn try_get_element(self: &Self, index: i32) -> Option<Ref<Control>>
    

    The realized cell of the column at index, if any (TryGetElement).

    Source

    recycle_all_elements

    fn recycle_all_elements(self: &Self)
    

    Recycles all the realized cells (RecycleAllElements).

    Source

    child_index_changed

    fn child_index_changed(self: &Self, handler: impl Fn(&ChildIndexChangedEventArgs) -> () + 'static) -> Rc<dyn IDisposable>
    

    Occurs when the index of a realized cell changes (ChildIndexChanged). Disposing the returned handle unsubscribes.

    Source

    realize

    fn realize(self: &Self, index: i32)
    

    Realizes the presenter for the row at index.

    Source

    unrealize

    fn unrealize(self: &Self)
    

    Unrealizes the presenter.

    Source

    update_row_index

    fn update_row_index(self: &Self, index: i32)
    

    The index of the row changed (UpdateRowIndex).

    Source

    update_selection

    fn update_selection(self: &Self, selection: Option<&dyn ITreeDataGridSelectionInteraction>)
    

    Updates the selection state of the realized cells (UpdateSelection).

    Source

    unrealize_on_row_removed

    fn unrealize_on_row_removed(self: &Self)
    

    Unrealizes the presenter because its row was removed (UnrealizeOnRowRemoved).

    Source

    finalize_unrealize

    fn finalize_unrealize(self: &Self)
    

    Recycles the cells kept for a rebind of the row when the row was not rebound (FinalizeUnrealize).

    Source

    get_child_index

    fn get_child_index(self: &Self, child: &StyledElement) -> i32
    

    The index of a cell (IChildIndexProvider.GetChildIndex).

    Source

    try_get_total_count

    fn try_get_total_count(self: &Self) -> Option<i32>
    

    The number of columns (IChildIndexProvider.TryGetTotalCount).

    Source

    Trait implementations

    Availability

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