RowDefinition
struct · ferroui-controls · v0.5.0
struct RowDefinition
Holds a row definition for a Grid.
Members
TYPEto_refmax_height_propertymin_height_propertyheight_propertyconstructnewwith_valuewith_heightactual_heightmax_heightset_max_heightmin_heightset_min_heightheightset_height
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<RowDefinition>
Returns a strong reference to this object.
max_height_property
fn max_height_property() -> &'static StyledProperty<f64>
Defines the MaxHeight property.
min_height_property
fn min_height_property() -> &'static StyledProperty<f64>
Defines the MinHeight property.
height_property
fn height_property() -> &'static StyledProperty<GridLength>
Defines the Height property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a row definition.
with_value
fn with_value(value: f64, type_: GridUnitType) -> Ref<Self>
Creates a row definition with the given height value and unit.
with_height
fn with_height(height: GridLength) -> Ref<Self>
Creates a row definition with the given height.
actual_height
fn actual_height(self: &Self) -> f64
The actual calculated height of the row.
max_height
fn max_height(self: &Self) -> f64
The maximum height of the row in DIPs.
set_max_height
fn set_max_height(self: &Self, value: f64)
min_height
fn min_height(self: &Self) -> f64
The minimum height of the row in DIPs.
set_min_height
fn set_min_height(self: &Self, value: f64)
height
fn height(self: &Self) -> GridLength
The height of the row.
set_height
fn set_height(self: &Self, value: GridLength)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeDefinitionBaseImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<RowDefinition>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplDefinitionBaseImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.