# TextLineBounds

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/enum-textlinebounds/

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

```rust
enum TextLineBounds
```

How the box of each line of text is bounded: by the ascent and the descent of its font
(the default), or trimmed to the cap height above the baseline, to the baseline below it,
or both.

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

## Members

- [`Full`](#variant-full)
- [`TrimToCapHeight`](#variant-trimtocapheight)
- [`TrimToBaseline`](#variant-trimtobaseline)
- [`Tight`](#variant-tight)
- [`trims_top`](#function-trims_top)
- [`trims_bottom`](#function-trims_bottom)

<a id="variant-full"></a>

### Full

```rust
Full
```

The box of a line is the ascent, the descent and the line gap of its font.

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

<a id="variant-trimtocapheight"></a>

### TrimToCapHeight

```rust
TrimToCapHeight
```

The top of the box of a line is the cap height of its font above the baseline; the
bottom is as `Full` has it.

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

<a id="variant-trimtobaseline"></a>

### TrimToBaseline

```rust
TrimToBaseline
```

The bottom of the box of a line is its baseline; the top is as `Full` has it.

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

<a id="variant-tight"></a>

### Tight

```rust
Tight
```

The box of a line runs from the cap height of its font above the baseline to the
baseline.

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

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

### trims_top

```rust
fn trims_top(self: Self) -> bool
```

Whether the top of the box of a line is the cap height above the baseline.

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

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

### trims_bottom

```rust
fn trims_bottom(self: Self) -> bool
```

Whether the bottom of the box of a line is the baseline.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- `Eq`
- `Hash`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

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