# RowDefinition

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/struct-rowdefinition/

**struct** · [`ferroui-controls`](/docs/0.5.0/api/ferroui-controls/) · v0.5.0

```rust
struct RowDefinition
```

Holds a row definition for a `Grid`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L9)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`max_height_property`](#function-max_height_property)
- [`min_height_property`](#function-min_height_property)
- [`height_property`](#function-height_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_value`](#function-with_value)
- [`with_height`](#function-with_height)
- [`actual_height`](#function-actual_height)
- [`max_height`](#function-max_height)
- [`set_max_height`](#function-set_max_height)
- [`min_height`](#function-min_height)
- [`set_min_height`](#function-set_min_height)
- [`height`](#function-height)
- [`set_height`](#function-set_height)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L13)

<a id="function-to_ref"></a>

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<RowDefinition>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L13)

<a id="function-max_height_property"></a>

### max_height_property

```rust
fn max_height_property() -> &'static StyledProperty<f64>
```

Defines the `MaxHeight` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L32)

<a id="function-min_height_property"></a>

### min_height_property

```rust
fn min_height_property() -> &'static StyledProperty<f64>
```

Defines the `MinHeight` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L32)

<a id="function-height_property"></a>

### height_property

```rust
fn height_property() -> &'static StyledProperty<GridLength>
```

Defines the `Height` property.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L32)

<a id="function-construct"></a>

### construct

```rust
fn construct() -> Self
```

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L69)

<a id="function-new"></a>

### new

```rust
fn new() -> Ref<Self>
```

Creates a row definition.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L76)

<a id="function-with_value"></a>

### with_value

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

Creates a row definition with the given height value and unit.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L81)

<a id="function-with_height"></a>

### with_height

```rust
fn with_height(height: GridLength) -> Ref<Self>
```

Creates a row definition with the given height.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L86)

<a id="function-actual_height"></a>

### actual_height

```rust
fn actual_height(self: &Self) -> f64
```

The actual calculated height of the row.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L93)

<a id="function-max_height"></a>

### max_height

```rust
fn max_height(self: &Self) -> f64
```

The maximum height of the row in DIPs.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L101)

<a id="function-set_max_height"></a>

### set_max_height

```rust
fn set_max_height(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L105)

<a id="function-min_height"></a>

### min_height

```rust
fn min_height(self: &Self) -> f64
```

The minimum height of the row in DIPs.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L110)

<a id="function-set_min_height"></a>

### set_min_height

```rust
fn set_min_height(self: &Self, value: f64)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L114)

<a id="function-height"></a>

### height

```rust
fn height(self: &Self) -> GridLength
```

The height of the row.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L119)

<a id="function-set_height"></a>

### set_height

```rust
fn set_height(self: &Self, value: GridLength)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/row_definition.rs#L123)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`DefinitionBaseImplExt`](/docs/0.5.0/api/ferroui-controls/trait-definitionbaseimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<RowDefinition>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`DefinitionBaseImpl`](/docs/0.5.0/api/ferroui-controls/trait-definitionbaseimpl/)

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
