FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IColumns

    trait · ferroui-controls-treedatagrid · v0.5.0

    trait IColumns
    

    The columns of a presentation (IColumns).

    View source

    Members

    count

    fn count(self: &Self) -> usize
    

    Source

    get

    fn get(self: &Self, index: usize) -> ColumnRef
    

    Source

    cell_measured

    fn cell_measured(self: &Self, column_index: i32, row_index: i32, size: Size) -> Size
    

    The size a cell gets after it was measured at size (CellMeasured).

    Source

    get_column_at

    fn get_column_at(self: &Self, x: f64) -> (i32, f64)
    

    The index and left edge of the column at x (GetColumnAt).

    Source

    get_estimated_width

    fn get_estimated_width(self: &Self, constraint: f64) -> f64
    

    Source

    commit_actual_widths

    fn commit_actual_widths(self: &Self)
    

    Source

    set_column_width

    fn set_column_width(self: &Self, column_index: i32, width: GridLength)
    

    Source

    viewport_changed

    fn viewport_changed(self: &Self, viewport: Rect)
    

    Source

    add_layout_invalidated

    fn add_layout_invalidated(self: &Self, handler: Rc<dyn Fn() -> ()>) -> u64
    

    LayoutInvalidated.

    Source

    remove_layout_invalidated

    fn remove_layout_invalidated(self: &Self, token: u64)
    

    Source

    add_collection_changed

    fn add_collection_changed(self: &Self, handler: Rc<ColumnsChangedHandler>) -> u64
    

    CollectionChanged (the columns as untyped view columns).

    Source

    remove_collection_changed

    fn remove_collection_changed(self: &Self, token: u64)
    

    Source

    as_layout_batch

    fn as_layout_batch(self: &Self) -> Option<&dyn IColumnLayoutBatch>
    

    The column layout batch of the columns, if they batch width commits (IColumnLayoutBatch).

    Source

    as_viewport_estimator

    fn as_viewport_estimator(self: &Self) -> Option<&dyn super::IColumnViewportEstimator>
    

    The viewport estimation of the columns, if they estimate the widths of the columns not realized (IColumnViewportEstimator).

    Source

    as_any

    fn as_any(self: &Self) -> &dyn Any
    

    Source

    Trait implementations

    Availability

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