FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CellColumnBase

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct CellColumnBase
    

    The header, width, sort direction and layout state of a presented column (CellColumnBase<TModel>).

    View source

    Members

    new

    fn new(header: Option<BoxedValue>, width: Option<GridLength>, options: CellColumnOptions) -> Self
    

    Source

    notifying

    fn notifying(self: &Self) -> &NotifyingBase
    

    The PropertyChanged of the column.

    Source

    options

    fn options(self: &Self) -> &CellColumnOptions
    

    Source

    actual_width

    fn actual_width(self: &Self) -> f64
    

    The width the column is laid out at.

    Source

    width

    fn width(self: &Self) -> GridLength
    

    Source

    header

    fn header(self: &Self) -> Option<BoxedValue>
    

    Source

    set_header

    fn set_header(self: &Self, value: Option<BoxedValue>)
    

    Source

    sort_direction

    fn sort_direction(self: &Self) -> Option<ListSortDirection>
    

    Source

    set_sort_direction

    fn set_sort_direction(self: &Self, value: Option<ListSortDirection>)
    

    Source

    tag

    fn tag(self: &Self) -> Option<BoxedValue>
    

    Source

    set_tag

    fn set_tag(self: &Self, value: Option<BoxedValue>)
    

    Source

    can_user_resize

    fn can_user_resize(self: &Self) -> Option<bool>
    

    IColumn.CanUserResize.

    Source

    min_actual_width

    fn min_actual_width(self: &Self) -> f64
    

    IUpdateColumnLayout.MinActualWidth.

    Source

    max_actual_width

    fn max_actual_width(self: &Self) -> f64
    

    IUpdateColumnLayout.MaxActualWidth.

    Source

    star_width_was_constrained

    fn star_width_was_constrained(self: &Self) -> bool
    

    IUpdateColumnLayout.StarWidthWasConstrained.

    Source

    requires_unconstrained_width_measurement

    fn requires_unconstrained_width_measurement(self: &Self) -> bool
    

    IColumnMeasurementOptions.RequiresUnconstrainedWidthMeasurement.

    Source

    cell_measured

    fn cell_measured(self: &Self, width: f64, _row_index: i32) -> f64
    

    IUpdateColumnLayout.CellMeasured.

    Source

    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).

    Source

    commit_actual_width

    fn commit_actual_width(self: &Self) -> bool
    

    IUpdateColumnLayout.CommitActualWidth.

    Source

    set_width

    fn set_width(self: &Self, width: GridLength)
    

    IUpdateColumnLayout.SetWidth.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.