ColumnDefinition
struct · ferroui-controls · v0.5.0
struct ColumnDefinition
Holds a column definition for a Grid.
Members
TYPEto_refmax_width_propertymin_width_propertywidth_propertyconstructnewwith_valuewith_widthactual_widthmax_widthset_max_widthmin_widthset_min_widthwidthset_width
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<ColumnDefinition>
Returns a strong reference to this object.
max_width_property
fn max_width_property() -> &'static StyledProperty<f64>
Defines the MaxWidth property.
min_width_property
fn min_width_property() -> &'static StyledProperty<f64>
Defines the MinWidth property.
width_property
fn width_property() -> &'static StyledProperty<GridLength>
Defines the Width property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a column definition.
with_value
fn with_value(value: f64, type_: GridUnitType) -> Ref<Self>
Creates a column definition with the given width value and unit.
with_width
fn with_width(width: GridLength) -> Ref<Self>
Creates a column definition with the given width.
actual_width
fn actual_width(self: &Self) -> f64
The actual calculated width of the column.
max_width
fn max_width(self: &Self) -> f64
The maximum width of the column in DIPs.
set_max_width
fn set_max_width(self: &Self, value: f64)
min_width
fn min_width(self: &Self) -> f64
The minimum width of the column in DIPs.
set_min_width
fn set_min_width(self: &Self, value: f64)
width
fn width(self: &Self) -> GridLength
The width of the column.
set_width
fn set_width(self: &Self, value: GridLength)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeDefinitionBaseImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<ColumnDefinition>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplDefinitionBaseImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.