# RichInlineItem

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

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

```rust
struct RichInlineItem
```



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

## Members

- [`text`](#struct_field-text)
- [`font`](#struct_field-font)
- [`break_mode`](#struct_field-break_mode)
- [`extra_width`](#struct_field-extra_width)
- [`new`](#function-new)
- [`with_break_mode`](#function-with_break_mode)
- [`with_extra_width`](#function-with_extra_width)

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

### text

```rust
text: String
```



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

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

### font

```rust
font: String
```



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

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

### break_mode

```rust
break_mode: RichInlineBreakMode
```



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

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

### extra_width

```rust
extra_width: f64
```



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

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

### new

```rust
fn new(text: impl Into<String>, font: impl Into<String>) -> Self
```



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

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

### with_break_mode

```rust
fn with_break_mode(self: Self, break_mode: RichInlineBreakMode) -> Self
```



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

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

### with_extra_width

```rust
fn with_extra_width(self: Self, extra_width: f64) -> Self
```



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

## Trait implementations

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

## Availability

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