# TextInputMethodTextBounds

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/input/text_input/struct-textinputmethodtextbounds/

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

```rust
struct TextInputMethodTextBounds
```

One shaped text fragment and its transform to the semantic input owner.

Keeping the local rectangle separate from its transform lets a platform
transform its four corners before taking screen bounds. Taking a bounding
box at each intermediate visual would inflate rotated text unnecessarily.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/text_input/text_input_method_range_geometry.rs#L14)

## Members

- [`rectangle`](#struct_field-rectangle)
- [`transform`](#struct_field-transform)
- [`new`](#function-new)
- [`with_transform`](#function-with_transform)
- [`corners`](#function-corners)

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

### rectangle

```rust
rectangle: crate::Rect
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/text_input/text_input_method_range_geometry.rs#L15)

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

### transform

```rust
transform: crate::Matrix
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/text_input/text_input_method_range_geometry.rs#L16)

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

### new

```rust
const fn new(rectangle: Rect) -> Self
```

A rectangle already expressed in the semantic owner's coordinates.

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

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

### with_transform

```rust
const fn with_transform(rectangle: Rect, transform: Matrix) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/text_input/text_input_method_range_geometry.rs#L25)

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

### corners

```rust
fn corners(self: &Self) -> [Point; 4]
```

The actual fragment corners, in the semantic owner's coordinates.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/input/text_input/text_input_method_range_geometry.rs#L33)

## 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`
- `StructuralPartialEq`
- `PartialEq`

## Availability

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