# PretextShapedRun

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

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

```rust
struct PretextShapedRun
```

Immutable positioned glyphs and the font runs that produced them.

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

## Members

- [`new`](#function-new)
- [`kind`](#function-kind)
- [`glyphs`](#function-glyphs)
- [`font_runs`](#function-font_runs)
- [`advance_x`](#function-advance_x)
- [`advance_y`](#function-advance_y)
- [`has_missing_glyphs`](#function-has_missing_glyphs)
- [`is_shaped`](#function-is_shaped)

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

### new

```rust
fn new(kind: PretextGlyphRunKind, glyphs: Vec<PretextShapedGlyph>, font_runs: Vec<PretextShapedFontRun>, advance_x: f64, advance_y: f64) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L59)

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

### kind

```rust
fn kind(self: &Self) -> PretextGlyphRunKind
```



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

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

### glyphs

```rust
fn glyphs(self: &Self) -> &[PretextShapedGlyph]
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L80)

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

### font_runs

```rust
fn font_runs(self: &Self) -> &[PretextShapedFontRun]
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L83)

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

### advance_x

```rust
fn advance_x(self: &Self) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L86)

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

### advance_y

```rust
fn advance_y(self: &Self) -> f64
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L89)

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

### has_missing_glyphs

```rust
fn has_missing_glyphs(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L92)

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

### is_shaped

```rust
fn is_shaped(self: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/Pretext/FerroUI.Pretext.Contracts/text_shaping_contracts.rs#L95)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Clone`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`

## Availability

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