# CompositionPathGeometry

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

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

```rust
struct CompositionPathGeometry
```

A geometry that shows a [`CompositionPath`](/docs/0.5.0/api/ferroui-base/rendering/composition/struct-compositionpath/) (WinUI
`Microsoft.UI.Composition.CompositionPathGeometry`).

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

## Members

- [`from_geometry`](#function-from_geometry)
- [`geometry`](#function-geometry)
- [`path`](#function-path)
- [`set_path`](#function-set_path)

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

### from_geometry

```rust
fn from_geometry(geometry: &Rc<CompositionGeometry>) -> Option<CompositionPathGeometry>
```

The handle of `geometry` as a path geometry, if it is one.

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

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

### geometry

```rust
fn geometry(self: &Self) -> &Rc<CompositionGeometry>
```

The geometry as a `CompositionGeometry`.

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

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

### path

```rust
fn path(self: &Self) -> Option<CompositionPath>
```

The path the geometry shows.

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

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

### set_path

```rust
fn set_path(self: &Self, value: Option<CompositionPath>)
```



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

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