FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TreeDataGridRow

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct TreeDataGridRow
    

    A row of a TreeDataGrid.

    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<TreeDataGridRow>
    

    Returns a strong reference to this object.

    Source

    on_realized

    fn on_realized(self: &Self, row_index: i32)
    

    Called after this row has been realized and its primary cells presenter has been updated. row_index is the realized row index.

    Source

    on_row_index_changed

    fn on_row_index_changed(self: &Self, old_row_index: i32, new_row_index: i32)
    

    Called after the index of this realized row and its primary cells has changed.

    Source

    on_unrealizing

    fn on_unrealizing(self: &Self, row_index: i32, reason: TreeDataGridRowUnrealizeReason)
    

    Called before this row and its primary cells presenter are unrealized. row_index is the row index that is about to be cleared and reason the reason the row is being unrealized.

    Source

    columns_property

    fn columns_property() -> &'static DirectProperty<TreeDataGridRow, Option<Rc<dyn IColumns>>>
    

    Defines the Columns property.

    Source

    element_factory_property

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

    Defines the ElementFactory property.

    Source

    is_selected_property

    fn is_selected_property() -> &'static DirectProperty<TreeDataGridRow, bool>
    

    Defines the IsSelected property.

    Source

    rows_property

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

    Defines the Rows property.

    Source

    PSEUDO_CLASSES

    const PSEUDO_CLASSES: PseudoClassesAttribute
    

    The pseudoclasses set by the class.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    columns

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

    The columns of the row.

    Source

    element_factory

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

    The factory of the cells of the row.

    Source

    set_element_factory

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

    Source

    is_selected

    fn is_selected(self: &Self) -> bool
    

    Whether the row is selected.

    Source

    model

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

    The model of the row: its data context.

    Source

    rows

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

    The rows the row belongs to.

    Source

    cells_presenter

    fn cells_presenter(self: &Self) -> Option<Ref<TreeDataGridCellsPresenter>>
    

    The cells presenter of the row's template.

    Source

    row_index

    fn row_index(self: &Self) -> i32
    

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

    Source

    realize

    fn realize(self: &Self, element_factory: Option<&Rc<TreeDataGridElementFactory>>, selection: Option<&dyn ITreeDataGridSelectionInteraction>, columns: Option<&Rc<dyn IColumns>>, rows: Option<&Rc<dyn ITreeDataGridRows>>, row_index: i32)
    

    Realizes the row for the row at row_index of rows.

    Source

    try_get_cell

    fn try_get_cell(self: &Self, column_index: i32) -> Option<Ref<Control>>
    

    The realized cell of the column at column_index, if any.

    Source

    update_index

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

    The index of the realized row changed.

    Source

    unrealize

    fn unrealize(self: &Self)
    

    Unrealizes the row, to be recycled for another row.

    Source

    unrealize_on_item_removed

    fn unrealize_on_item_removed(self: &Self)
    

    Unrealizes the row because its item was removed from the source.

    Source

    finalize_unrealize

    fn finalize_unrealize(self: &Self)
    

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

    Source

    update_selection

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

    Updates the selection state of the row and its cells (UpdateSelection).

    Source

    Trait implementations

    Availability

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