# EmbeddedControlRun

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

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

```rust
struct EmbeddedControlRun
```

The text run of a control embedded in text: it reserves the desired size
of the control in the line and draws nothing.

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

## Members

- [`new`](#function-new)
- [`control`](#function-control)

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

### new

```rust
fn new(control: Ref<Control>, properties: Rc<dyn TextRunProperties>) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/inline_run.rs#L21)

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

### control

```rust
fn control(self: &Self) -> &Ref<Control>
```

The embedded control.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/documents/inline_run.rs#L120)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`TextRun`](/docs/0.5.0/api/ferroui-base/media/text_formatting/trait-textrun/)
- [`DrawableTextRun`](/docs/0.5.0/api/ferroui-base/media/text_formatting/trait-drawabletextrun/)

## Availability

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