# MaterialTextFieldLayout

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-themes-material/struct-materialtextfieldlayout/

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

```rust
struct MaterialTextFieldLayout
```

Arranges a real text editor together with Material decoration. In particular,
outlined labels interpolate from the editor's start edge to the 16dp outline
inset, independently of leading-icon and prefix widths. Supporting content
contributes to the control's height without stretching the painted container.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L49)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`slot_property`](#function-slot_property)
- [`label_progress_property`](#function-label_progress_property)
- [`is_outlined_property`](#function-is_outlined_property)
- [`single_line_property`](#function-single_line_property)
- [`content_padding_property`](#function-content_padding_property)
- [`container_min_height_property`](#function-container_min_height_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`get_slot`](#function-get_slot)
- [`set_slot`](#function-set_slot)
- [`label_progress`](#function-label_progress)
- [`set_label_progress`](#function-set_label_progress)
- [`is_outlined`](#function-is_outlined)
- [`set_is_outlined`](#function-set_is_outlined)
- [`single_line`](#function-single_line)
- [`set_single_line`](#function-set_single_line)
- [`content_padding`](#function-content_padding)
- [`set_content_padding`](#function-set_content_padding)
- [`container_min_height`](#function-container_min_height)
- [`set_container_min_height`](#function-set_container_min_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.Themes.Material/text_field_layout.rs#L52)

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

### to_ref

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

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L52)

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

### slot_property

```rust
fn slot_property() -> &'static AttachedProperty<MaterialTextFieldSlot>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L61)

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

### label_progress_property

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

0 is the resting label and 1 is minimized. A spatial spring may overshoot.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L61)

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

### is_outlined_property

```rust
fn is_outlined_property() -> &'static StyledProperty<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L61)

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

### single_line_property

```rust
fn single_line_property() -> &'static StyledProperty<bool>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L61)

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

### content_padding_property

```rust
fn content_padding_property() -> &'static StyledProperty<Thickness>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L61)

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

### container_min_height_property

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L61)

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

### construct

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L97)

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

### new

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L102)

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

### get_slot

```rust
fn get_slot(child: &Control) -> MaterialTextFieldSlot
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L105)

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

### set_slot

```rust
fn set_slot(child: &Control, value: MaterialTextFieldSlot)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L108)

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

### label_progress

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L111)

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

### set_label_progress

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L114)

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

### is_outlined

```rust
fn is_outlined(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L117)

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

### set_is_outlined

```rust
fn set_is_outlined(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L120)

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

### single_line

```rust
fn single_line(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L123)

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

### set_single_line

```rust
fn set_single_line(self: &Self, value: bool)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L126)

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

### content_padding

```rust
fn content_padding(self: &Self) -> Thickness
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L129)

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

### set_content_padding

```rust
fn set_content_padding(self: &Self, value: Thickness)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L132)

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

### container_min_height

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L135)

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

### set_container_min_height

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Themes.Material/text_field_layout.rs#L138)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `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`
- [`InputElementImplExt`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimplext/)
- [`InteractiveImplExt`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimplext/)
- [`LayoutableImplExt`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`StyledElementImplExt`](/docs/0.5.0/api/ferroui-base/trait-styledelementimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- [`VisualImplExt`](/docs/0.5.0/api/ferroui-base/trait-visualimplext/)
- `ErasedDestructor`
- `IntoEither`
- `CastableFrom<ST, Uninit, Uninit>`
- `CastableFrom<ST, Initialized, Initialized>`
- `Read<Exclusive, BecauseExclusive>`
- [`ControlImplExt`](/docs/0.5.0/api/ferroui-controls/trait-controlimplext/)
- [`PanelImplExt`](/docs/0.5.0/api/ferroui-controls/trait-panelimplext/)
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<MaterialTextFieldLayout>`](/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/)
- [`StyledElementImpl`](/docs/0.5.0/api/ferroui-base/trait-styledelementimpl/)
- [`VisualImpl`](/docs/0.5.0/api/ferroui-base/trait-visualimpl/)
- [`InteractiveImpl`](/docs/0.5.0/api/ferroui-base/interactivity/trait-interactiveimpl/)
- [`InputElementImpl`](/docs/0.5.0/api/ferroui-base/input/trait-inputelementimpl/)
- [`ControlImpl`](/docs/0.5.0/api/ferroui-controls/trait-controlimpl/)
- [`PanelImpl`](/docs/0.5.0/api/ferroui-controls/trait-panelimpl/)
- [`LayoutableImpl`](/docs/0.5.0/api/ferroui-base/layout/trait-layoutableimpl/)

## Availability

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