FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TreeDataGridCellImpl

    trait · ferroui-controls-treedatagrid · v0.5.0

    trait TreeDataGridCellImpl: TemplatedControlImpl + $crate::Upcast<TreeDataGridCell>
    

    The overridable members introduced by the class.

    View source

    Members

    begin_rebind

    fn begin_rebind(this: &Self)
    

    Begins a synchronous replacement of this cell's row. The presenter still calls unrealize and realize, including their normal clearing/prepared events. This hook is not called when a cell is merely returned to the recycle pool.

    Source

    end_rebind

    fn end_rebind(this: &Self, realized: bool)
    

    Ends the synchronous replacement, including when a lifecycle callback panics. realized is true only when realize completed successfully. On false, release any presentation state retained by begin_rebind. Do not assume the model or indexes were reset if a callback failed partway through.

    Source

    realize

    fn realize(this: &Self, factory: &Rc<TreeDataGridElementFactory>, selection: Option<&dyn ITreeDataGridSelectionInteraction>, model: &CellRef, column_index: i32, row_index: i32)
    

    Binds the cell to model, the cell of the column at column_index in the row at row_index.

    Source

    unrealize

    fn unrealize(this: &Self)
    

    Releases the cell's model.

    Source

    update_value

    fn update_value(this: &Self)
    

    Reads the value of the model again (UpdateValue).

    Source

    on_model_property_changed

    fn on_model_property_changed(this: &Self, property_name: &str)
    

    A property of the model changed (OnModelPropertyChanged); property_name is the name of the property, empty when all properties changed.

    Source

    Trait implementations

    Availability

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