# RectangleClip

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

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

```rust
struct RectangleClip
```

A clip that leaves visible a rectangle, with optional rounded corners,
in the coordinates of the visual it is set on (WinUI
`Microsoft.UI.Composition.RectangleClip`). Every member is animatable
(`Left`, `Top`, `Right`, `Bottom`, `TopLeftRadius`, `TopRightRadius`,
`BottomLeftRadius`, `BottomRightRadius`); the radii are elliptical
(WinUI `Vector2`).

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

## Members

- [`from_clip`](#function-from_clip)
- [`left`](#function-left)
- [`set_left`](#function-set_left)
- [`top`](#function-top)
- [`set_top`](#function-set_top)
- [`right`](#function-right)
- [`set_right`](#function-set_right)
- [`bottom`](#function-bottom)
- [`set_bottom`](#function-set_bottom)
- [`top_left_radius`](#function-top_left_radius)
- [`set_top_left_radius`](#function-set_top_left_radius)
- [`top_right_radius`](#function-top_right_radius)
- [`set_top_right_radius`](#function-set_top_right_radius)
- [`bottom_left_radius`](#function-bottom_left_radius)
- [`set_bottom_left_radius`](#function-set_bottom_left_radius)
- [`bottom_right_radius`](#function-bottom_right_radius)
- [`set_bottom_right_radius`](#function-set_bottom_right_radius)

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

### from_clip

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

The handle of `clip` as a rectangle clip, if it is one.

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

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

### left

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



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

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

### set_left

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



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

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

### top

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



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

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

### set_top

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



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

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

### right

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



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

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

### set_right

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



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

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

### bottom

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



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

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

### set_bottom

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



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

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

### top_left_radius

```rust
fn top_left_radius(self: &Self) -> Vector
```



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

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

### set_top_left_radius

```rust
fn set_top_left_radius(self: &Self, value: Vector)
```



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

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

### top_right_radius

```rust
fn top_right_radius(self: &Self) -> Vector
```



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

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

### set_top_right_radius

```rust
fn set_top_right_radius(self: &Self, value: Vector)
```



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

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

### bottom_left_radius

```rust
fn bottom_left_radius(self: &Self) -> Vector
```



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

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

### set_bottom_left_radius

```rust
fn set_bottom_left_radius(self: &Self, value: Vector)
```



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

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

### bottom_right_radius

```rust
fn bottom_right_radius(self: &Self) -> Vector
```



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

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

### set_bottom_right_radius

```rust
fn set_bottom_right_radius(self: &Self, value: Vector)
```



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

## 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/).
