TreeDataGridColumnarPresenterBase
struct · ferroui-controls-treedatagrid · v0.5.0
struct TreeDataGridColumnarPresenterBase
The state of the reference's TreeDataGridColumnarPresenterBase<TItem>.
Members
newget_initial_constraintget_or_estimate_anchor_element_for_viewportestimate_element_size_uneeds_measure_for_viewport_changeneeds_final_measure_passneeds_final_measureget_element_atget_final_constraintmeasure_column_elementcalculate_size_u
new
fn new() -> Self
get_initial_constraint
fn get_initial_constraint(columns: &dyn IColumns, index: i32, available_size: Size) -> Size
GetInitialConstraint: the actual width of the column when it is known and the column does
not need an unconstrained measure, otherwise its maximum width.
get_or_estimate_anchor_element_for_viewport
fn get_or_estimate_anchor_element_for_viewport(self: &Self, base: &TreeDataGridPresenterBase, columns: Option<&dyn IColumns>, viewport_start: f64, viewport_end: f64, item_count: i32) -> (i32, f64)
GetOrEstimateAnchorElementForViewport.
estimate_element_size_u
fn estimate_element_size_u(self: &Self, columns: Option<&dyn IColumns>) -> f64
EstimateElementSizeU: the average width of the measured columns.
needs_measure_for_viewport_change
fn needs_measure_for_viewport_change(base: &TreeDataGridPresenterBase, orientation: Orientation, measure_viewport: Rect, viewport: Rect) -> bool
NeedsMeasureForViewportChange.
needs_final_measure_pass
fn needs_final_measure_pass(columns: &dyn IColumns, first_index: i32, elements: &[Option<Ref<Control>>]) -> bool
NeedsFinalMeasurePass.
needs_final_measure
fn needs_final_measure(columns: &dyn IColumns, element: &Control, index: i32) -> bool
IFinalMeasureSelector.NeedsFinalMeasure: whether the element was measured wider than its
column, or at another width than its auto-sized column.
get_element_at
fn get_element_at(columns: &dyn IColumns, position: f64) -> (i32, f64)
GetElementAt.
get_final_constraint
fn get_final_constraint(columns: &dyn IColumns, index: i32) -> Size
GetFinalConstraint: the actual width of the column, with an unconstrained height.
measure_column_element
fn measure_column_element(columns: &dyn IColumns, index: i32, row_index: i32, element: &Control, available_size: Size) -> Size
MeasureColumnElement: measures the element of a column and reports the measure to the
columns, which give the size the element gets.
calculate_size_u
fn calculate_size_u(columns: Option<&dyn IColumns>, available_size: Size) -> f64
CalculateSizeU: the estimated width of the columns.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.