CellColumnBase
struct · ferroui-controls-treedatagrid · v0.5.0
struct CellColumnBase
The header, width, sort direction and layout state of a presented column (CellColumnBase<TModel>).
Members
newnotifyingoptionsactual_widthwidthheaderset_headersort_directionset_sort_directiontagset_tagcan_user_resizemin_actual_widthmax_actual_widthstar_width_was_constrainedrequires_unconstrained_width_measurementcell_measuredcalculate_star_widthcommit_actual_widthset_width
new
fn new(header: Option<BoxedValue>, width: Option<GridLength>, options: CellColumnOptions) -> Self
notifying
fn notifying(self: &Self) -> &NotifyingBase
The PropertyChanged of the column.
options
fn options(self: &Self) -> &CellColumnOptions
actual_width
fn actual_width(self: &Self) -> f64
The width the column is laid out at.
width
fn width(self: &Self) -> GridLength
header
fn header(self: &Self) -> Option<BoxedValue>
set_header
fn set_header(self: &Self, value: Option<BoxedValue>)
sort_direction
fn sort_direction(self: &Self) -> Option<ListSortDirection>
set_sort_direction
fn set_sort_direction(self: &Self, value: Option<ListSortDirection>)
tag
fn tag(self: &Self) -> Option<BoxedValue>
set_tag
fn set_tag(self: &Self, value: Option<BoxedValue>)
can_user_resize
fn can_user_resize(self: &Self) -> Option<bool>
IColumn.CanUserResize.
min_actual_width
fn min_actual_width(self: &Self) -> f64
IUpdateColumnLayout.MinActualWidth.
max_actual_width
fn max_actual_width(self: &Self) -> f64
IUpdateColumnLayout.MaxActualWidth.
star_width_was_constrained
fn star_width_was_constrained(self: &Self) -> bool
IUpdateColumnLayout.StarWidthWasConstrained.
requires_unconstrained_width_measurement
fn requires_unconstrained_width_measurement(self: &Self) -> bool
IColumnMeasurementOptions.RequiresUnconstrainedWidthMeasurement.
cell_measured
fn cell_measured(self: &Self, width: f64, _row_index: i32) -> f64
IUpdateColumnLayout.CellMeasured.
calculate_star_width
fn calculate_star_width(self: &Self, available_width: f64, total_stars: f64)
IUpdateColumnLayout.CalculateStarWidth.
Panics
When the column is not a star column (InvalidOperationException).
commit_actual_width
fn commit_actual_width(self: &Self) -> bool
IUpdateColumnLayout.CommitActualWidth.
set_width
fn set_width(self: &Self, width: GridLength)
IUpdateColumnLayout.SetWidth.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.