# PreparedShapedText

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-pretext/struct-preparedshapedtext/

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

```rust
struct PreparedShapedText
```

A prepared text object and its shaping snapshot. It retains its backend, so
clearing or replacing an engine's backend cannot invalidate retained lines.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext/pretext_layout_shaping.rs#L39)

## Members

- [`prepared`](#function-prepared)
- [`direction`](#function-direction)
- [`options`](#function-options)
- [`text`](#function-text)
- [`shaped_run`](#function-shaped_run)

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

### prepared

```rust
fn prepared(self: &Self) -> &Rc<PreparedTextWithSegments>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext/pretext_layout_shaping.rs#L63)

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

### direction

```rust
fn direction(self: &Self) -> PretextTextDirection
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext/pretext_layout_shaping.rs#L66)

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

### options

```rust
fn options(self: &Self) -> PretextShapeOptions
```



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

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

### text

```rust
fn text(self: &Self) -> &str
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext/pretext_layout_shaping.rs#L74)

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

### shaped_run

```rust
fn shaped_run(self: &Self) -> &Rc<PretextShapedRun>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext/pretext_layout_shaping.rs#L77)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`

## Availability

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