# TransformedBounds

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/visual_tree/struct-transformedbounds/

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

```rust
struct TransformedBounds
```

Holds information about the bounds of a control, together with a
transform and a clip.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/transformed_bounds.rs#L7)

## Members

- [`bounds`](#struct_field-bounds)
- [`clip`](#struct_field-clip)
- [`transform`](#struct_field-transform)
- [`new`](#function-new)
- [`contains`](#function-contains)

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

### bounds

```rust
bounds: crate::Rect
```

The control's bounds.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/transformed_bounds.rs#L9)

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

### clip

```rust
clip: crate::Rect
```

The clip rectangle, in global coordinates.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/transformed_bounds.rs#L11)

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

### transform

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

The transform that maps the control's bounds to global coordinates.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/visual_tree/transformed_bounds.rs#L13)

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

### new

```rust
const fn new(bounds: Rect, clip: Rect, transform: Matrix) -> Self
```

Creates transformed bounds.

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

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

### contains

```rust
fn contains(self: &Self, point: Point) -> bool
```

Whether the transformed bounds contain a point given in global
coordinates.

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

## 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`
- `ToString`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`
- `Display`

## Availability

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