ColumnBase
struct · ferroui-controls-treedatagrid · v0.5.0
struct ColumnBase<M: 'static>
ColumnBase<TModel>: the state of a view column of models of M.
Members
newproperty_changednotifyingactual_widthwidthheaderset_headeroptionscolumn_optionssort_directionset_sort_directiontagset_tagidis_visibleset_is_visiblepresentation_keyset_presentation_keycan_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: Rc<dyn IColumnOptions<M>>) -> Self
The state of a column with header, width (None: Auto) and options.
property_changed
fn property_changed(self: &Self) -> &Event<str>
The PropertyChanged of the column.
notifying
fn notifying(self: &Self) -> &NotifyingBase
The notification helpers of the column.
actual_width
fn actual_width(self: &Self) -> f64
The width of the column after measurement.
width
fn width(self: &Self) -> GridLength
The width of the column; it is set through IColumns::set_column_width.
header
fn header(self: &Self) -> Option<BoxedValue>
The column header.
set_header
fn set_header(self: &Self, value: Option<BoxedValue>)
options
fn options(self: &Self) -> &ColumnOptions<M>
The options of the column.
column_options
fn column_options(self: &Self) -> &Rc<dyn IColumnOptions<M>>
The options of the column as they were given.
sort_direction
fn sort_direction(self: &Self) -> Option<ListSortDirection>
The sort direction indicator shown on the column. Setting it does not sort the data
(ITreeDataGridSource::sort_by does).
set_sort_direction
fn set_sort_direction(self: &Self, value: Option<ListSortDirection>)
tag
fn tag(self: &Self) -> Option<BoxedValue>
A user-defined object attached to the column.
set_tag
fn set_tag(self: &Self, value: Option<BoxedValue>)
id
fn id(self: &Self) -> String
The identifier of the column as a core column: its header's text.
is_visible
fn is_visible(self: &Self) -> bool
set_is_visible
fn set_is_visible(self: &Self, value: bool)
presentation_key
fn presentation_key(self: &Self) -> Option<String>
set_presentation_key
fn set_presentation_key(self: &Self, value: Option<String>)
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: the preferred width; an absolute width is also the width
the column is laid out at.
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.