TreeDataGridRow
struct · ferroui-controls-treedatagrid · v0.5.0
struct TreeDataGridRow
A row of a TreeDataGrid.
Members
TYPEto_refon_realizedon_row_index_changedon_unrealizingcolumns_propertyelement_factory_propertyis_selected_propertyrows_propertyPSEUDO_CLASSESconstructnewcolumnselement_factoryset_element_factoryis_selectedmodelrowscells_presenterrow_indexrealizetry_get_cellupdate_indexunrealizeunrealize_on_item_removedfinalize_unrealizeupdate_selection
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TreeDataGridRow>
Returns a strong reference to this object.
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.
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.
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.
columns_property
fn columns_property() -> &'static DirectProperty<TreeDataGridRow, Option<Rc<dyn IColumns>>>
Defines the Columns property.
element_factory_property
fn element_factory_property() -> &'static DirectProperty<TreeDataGridRow, Option<Rc<TreeDataGridElementFactory>>>
Defines the ElementFactory property.
is_selected_property
fn is_selected_property() -> &'static DirectProperty<TreeDataGridRow, bool>
Defines the IsSelected property.
rows_property
fn rows_property() -> &'static DirectProperty<TreeDataGridRow, Option<Rc<dyn ITreeDataGridRows>>>
Defines the Rows property.
PSEUDO_CLASSES
const PSEUDO_CLASSES: PseudoClassesAttribute
The pseudoclasses set by the class.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
columns
fn columns(self: &Self) -> Option<Rc<dyn IColumns>>
The columns of the row.
element_factory
fn element_factory(self: &Self) -> Option<Rc<TreeDataGridElementFactory>>
The factory of the cells of the row.
set_element_factory
fn set_element_factory(self: &Self, value: Option<Rc<TreeDataGridElementFactory>>)
is_selected
fn is_selected(self: &Self) -> bool
Whether the row is selected.
model
fn model(self: &Self) -> Option<BoxedValue>
The model of the row: its data context.
rows
fn rows(self: &Self) -> Option<Rc<dyn ITreeDataGridRows>>
The rows the row belongs to.
cells_presenter
fn cells_presenter(self: &Self) -> Option<Ref<TreeDataGridCellsPresenter>>
The cells presenter of the row's template.
row_index
fn row_index(self: &Self) -> i32
The index of the row, or -1 when it is not realized.
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.
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.
update_index
fn update_index(self: &Self, index: i32)
The index of the realized row changed.
unrealize
fn unrealize(self: &Self)
Unrealizes the row, to be recycled for another row.
unrealize_on_item_removed
fn unrealize_on_item_removed(self: &Self)
Unrealizes the row because its item was removed from the source.
finalize_unrealize
fn finalize_unrealize(self: &Self)
Releases the cells kept for a rebind when the row was not rebound (FinalizeUnrealize).
update_selection
fn update_selection(self: &Self, selection: Option<&dyn ITreeDataGridSelectionInteraction>)
Updates the selection state of the row and its cells (UpdateSelection).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTreeDataGridRowImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherTemplatedControlImplExtControlImplExtDerefUpcast<T>Upcast<TreeDataGridRow>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleLayoutableImplInteractiveImplFerroObjectImplStyledElementImplVisualImplInputElementImplControlImplTemplatedControlImplTreeDataGridRowImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.