# WrappingTextLineBreak

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/text_formatting/struct-wrappingtextlinebreak/

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

```rust
struct WrappingTextLineBreak
```

A line break of a wrapped line that carries the runs the next line starts
with.

Upstream models this as an internal subclass of `TextLineBreak`; here it is
a `TextLineBreak` with remaining runs, created and consumed through these
functions.

Internal upstream; public so that the Skia unit tests reach it.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/wrapping_text_line_break.rs#L14)

## Members

- [`new`](#function-new)
- [`is_wrapping`](#function-is_wrapping)
- [`acquire_remaining_runs`](#function-acquire_remaining_runs)

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

### new

```rust
fn new(text_end_of_line: Option<Rc<dyn TextRun>>, flow_direction: FlowDirection, remaining_runs: Vec<Rc<dyn TextRun>>) -> TextLineBreak
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/wrapping_text_line_break.rs#L17)

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

### is_wrapping

```rust
fn is_wrapping(line_break: &TextLineBreak) -> bool
```

Whether the line break is a wrapping line break (C# `is WrappingTextLineBreak`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/wrapping_text_line_break.rs#L31)

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

### acquire_remaining_runs

```rust
fn acquire_remaining_runs(line_break: &TextLineBreak) -> Option<Vec<Rc<dyn TextRun>>>
```

Takes the remaining runs; a second call returns `None`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/text_formatting/wrapping_text_line_break.rs#L36)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `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/).
