FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ColumnDefinition

    struct · ferroui-controls · v0.5.0

    struct ColumnDefinition
    

    Holds a column definition for a Grid.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<ColumnDefinition>
    

    Returns a strong reference to this object.

    Source

    max_width_property

    fn max_width_property() -> &'static StyledProperty<f64>
    

    Defines the MaxWidth property.

    Source

    min_width_property

    fn min_width_property() -> &'static StyledProperty<f64>
    

    Defines the MinWidth property.

    Source

    width_property

    fn width_property() -> &'static StyledProperty<GridLength>
    

    Defines the Width property.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a column definition.

    Source

    with_value

    fn with_value(value: f64, type_: GridUnitType) -> Ref<Self>
    

    Creates a column definition with the given width value and unit.

    Source

    with_width

    fn with_width(width: GridLength) -> Ref<Self>
    

    Creates a column definition with the given width.

    Source

    actual_width

    fn actual_width(self: &Self) -> f64
    

    The actual calculated width of the column.

    Source

    max_width

    fn max_width(self: &Self) -> f64
    

    The maximum width of the column in DIPs.

    Source

    set_max_width

    fn set_max_width(self: &Self, value: f64)
    

    Source

    min_width

    fn min_width(self: &Self) -> f64
    

    The minimum width of the column in DIPs.

    Source

    set_min_width

    fn set_min_width(self: &Self, value: f64)
    

    Source

    width

    fn width(self: &Self) -> GridLength
    

    The width of the column.

    Source

    set_width

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

    Source

    Trait implementations

    Availability

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