# InsetClip

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/rendering/composition/struct-insetclip/

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

```rust
struct InsetClip
```

A clip that leaves visible the rectangle `(left_inset, top_inset,
width - right_inset, height - bottom_inset)` of the visual it is set on
(WinUI `Microsoft.UI.Composition.InsetClip`). The insets are animatable
(`LeftInset`, `TopInset`, `RightInset`, `BottomInset`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_clip.rs#L203)

## Members

- [`from_clip`](#function-from_clip)
- [`left_inset`](#function-left_inset)
- [`set_left_inset`](#function-set_left_inset)
- [`top_inset`](#function-top_inset)
- [`set_top_inset`](#function-set_top_inset)
- [`right_inset`](#function-right_inset)
- [`set_right_inset`](#function-set_right_inset)
- [`bottom_inset`](#function-bottom_inset)
- [`set_bottom_inset`](#function-set_bottom_inset)

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

### from_clip

```rust
fn from_clip(clip: &Rc<CompositionClip>) -> Option<InsetClip>
```

The handle of `clip` as an inset clip, if it is one.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_clip.rs#L232)

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

### left_inset

```rust
fn left_inset(self: &Self) -> f32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_clip.rs#L243)

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

### set_left_inset

```rust
fn set_left_inset(self: &Self, value: f32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_clip.rs#L247)

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

### top_inset

```rust
fn top_inset(self: &Self) -> f32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_clip.rs#L251)

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

### set_top_inset

```rust
fn set_top_inset(self: &Self, value: f32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_clip.rs#L255)

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

### right_inset

```rust
fn right_inset(self: &Self) -> f32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_clip.rs#L259)

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

### set_right_inset

```rust
fn set_right_inset(self: &Self, value: f32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_clip.rs#L263)

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

### bottom_inset

```rust
fn bottom_inset(self: &Self) -> f32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_clip.rs#L267)

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

### set_bottom_inset

```rust
fn set_bottom_inset(self: &Self, value: f32)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/composition_clip.rs#L271)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Deref`

## Availability

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