# TextLineMetrics

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

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

```rust
struct TextLineMetrics
```

Represents a metric for a `TextLine` object that is used to tell where
the line sits and how big it is.

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

## Members

- [`has_overflowed`](#struct_field-has_overflowed)
- [`height`](#struct_field-height)
- [`newline_length`](#struct_field-newline_length)
- [`start`](#struct_field-start)
- [`text_baseline`](#struct_field-text_baseline)
- [`trailing_whitespace_length`](#struct_field-trailing_whitespace_length)
- [`width`](#struct_field-width)
- [`width_including_trailing_whitespace`](#struct_field-width_including_trailing_whitespace)
- [`extent`](#struct_field-extent)
- [`overhang_after`](#struct_field-overhang_after)
- [`overhang_leading`](#struct_field-overhang_leading)
- [`overhang_trailing`](#struct_field-overhang_trailing)

<a id="struct_field-has_overflowed"></a>

### has_overflowed

```rust
has_overflowed: bool
```

Gets a value that indicates whether content of the line overflows the specified paragraph width.

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

<a id="struct_field-height"></a>

### height

```rust
height: f64
```

Gets the height of a line of text.

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

<a id="struct_field-newline_length"></a>

### newline_length

```rust
newline_length: i32
```

Gets the number of newline characters at the end of a line.

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

<a id="struct_field-start"></a>

### start

```rust
start: f64
```

Gets the distance from the start of a paragraph to the starting point of a line.

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

<a id="struct_field-text_baseline"></a>

### text_baseline

```rust
text_baseline: f64
```

Gets the distance from the top to the baseline of the line of text.

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

<a id="struct_field-trailing_whitespace_length"></a>

### trailing_whitespace_length

```rust
trailing_whitespace_length: i32
```

Gets the number of whitespace characters at the end of a line.

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

<a id="struct_field-width"></a>

### width

```rust
width: f64
```

Gets the width of a line of text, excluding trailing whitespace characters.

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

<a id="struct_field-width_including_trailing_whitespace"></a>

### width_including_trailing_whitespace

```rust
width_including_trailing_whitespace: f64
```

Gets the width of a line of text, including trailing whitespace characters.

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

<a id="struct_field-extent"></a>

### extent

```rust
extent: f64
```

Gets the distance from the top-most to bottom-most black pixel in a line.

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

<a id="struct_field-overhang_after"></a>

### overhang_after

```rust
overhang_after: f64
```

Gets the distance that black pixels extend beyond the bottom alignment edge of a line.

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

<a id="struct_field-overhang_leading"></a>

### overhang_leading

```rust
overhang_leading: f64
```

Gets the distance that black pixels extend prior to the left leading alignment edge of the line.

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

<a id="struct_field-overhang_trailing"></a>

### overhang_trailing

```rust
overhang_trailing: f64
```

Gets the distance that black pixels extend following the right trailing alignment edge of the line.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`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`

## Availability

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