IColumnViewportEstimator
trait · ferroui-controls-treedatagrid · v0.5.0
trait IColumnViewportEstimator
The estimate of the column at a viewport position (IColumnViewportEstimator), which the
virtualizing presenter of the columns uses before the columns in view are realized.
Members
get_or_estimate_column_at
fn get_or_estimate_column_at(self: &Self, viewport_start: f64, viewport_end: f64, item_count: i32, realized_start: f64, first_realized_index: i32, estimated_element_size: &mut f64) -> (i32, f64)
The index and start of the column at viewport_start, from the widths of the columns from
first_realized_index (whose start is realized_start), or estimated from the average
width; estimated_element_size is the estimate of the last layout, updated.
estimate_element_size
fn estimate_element_size(self: &Self) -> f64
The average width of the measured columns, or -1 when no column is measured.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.