IColumns
trait · ferroui-controls-treedatagrid · v0.5.0
trait IColumns
The columns of a presentation (IColumns).
Members
countgetcell_measuredget_column_atget_estimated_widthcommit_actual_widthsset_column_widthviewport_changedadd_layout_invalidatedremove_layout_invalidatedadd_collection_changedremove_collection_changedas_layout_batchas_viewport_estimatoras_any
count
fn count(self: &Self) -> usize
get
fn get(self: &Self, index: usize) -> ColumnRef
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).
get_column_at
fn get_column_at(self: &Self, x: f64) -> (i32, f64)
The index and left edge of the column at x (GetColumnAt).
get_estimated_width
fn get_estimated_width(self: &Self, constraint: f64) -> f64
commit_actual_widths
fn commit_actual_widths(self: &Self)
set_column_width
fn set_column_width(self: &Self, column_index: i32, width: GridLength)
viewport_changed
fn viewport_changed(self: &Self, viewport: Rect)
add_layout_invalidated
fn add_layout_invalidated(self: &Self, handler: Rc<dyn Fn() -> ()>) -> u64
LayoutInvalidated.
remove_layout_invalidated
fn remove_layout_invalidated(self: &Self, token: u64)
add_collection_changed
fn add_collection_changed(self: &Self, handler: Rc<ColumnsChangedHandler>) -> u64
CollectionChanged (the columns as untyped view columns).
remove_collection_changed
fn remove_collection_changed(self: &Self, token: u64)
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).
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).
as_any
fn as_any(self: &Self) -> &dyn Any
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.