# PathGeometry

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/struct-pathgeometry/

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

```rust
struct PathGeometry
```

Represents a complex shape that may be composed of arcs, curves,
ellipses, lines, and rectangles.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/path_geometry.rs#L22)

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`figures_property`](#function-figures_property)
- [`fill_rule_property`](#function-fill_rule_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`parse`](#function-parse)
- [`figures`](#function-figures)
- [`set_figures`](#function-set_figures)
- [`fill_rule`](#function-fill_rule)
- [`set_fill_rule`](#function-set_fill_rule)

<a id="assoc_const-type"></a>

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/path_geometry.rs#L30)

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<PathGeometry>
```

Returns a strong reference to this object.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/path_geometry.rs#L30)

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

### figures_property

```rust
fn figures_property() -> &'static DirectProperty<PathGeometry, Option<PathFigures>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/path_geometry.rs#L64)

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

### fill_rule_property

```rust
fn fill_rule_property() -> &'static StyledProperty<FillRule>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/path_geometry.rs#L64)

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

### construct

```rust
fn construct() -> Self
```

Creates the class data.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/path_geometry.rs#L87)

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

### new

```rust
fn new() -> Ref<Self>
```

Creates a path geometry with an empty figures collection.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/path_geometry.rs#L98)

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

### parse

```rust
fn parse(path_data: &str) -> Result<Ref<PathGeometry>, FormatError>
```

Parses the specified path data to a path geometry.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/path_geometry.rs#L103)

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

### figures

```rust
fn figures(self: &Self) -> Option<PathFigures>
```

The figures.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/path_geometry.rs#L115)

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

### set_figures

```rust
fn set_figures(self: &Self, value: Option<PathFigures>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/path_geometry.rs#L119)

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

### fill_rule

```rust
fn fill_rule(self: &Self) -> FillRule
```

How the intersecting areas contained in the path geometry are
combined. The default value is `FillRule::EvenOdd`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/path_geometry.rs#L125)

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

### set_fill_rule

```rust
fn set_fill_rule(self: &Self, value: FillRule)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/path_geometry.rs#L129)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`GeometryImplExt`](/docs/0.5.0/api/ferroui-base/media/trait-geometryimplext/)
- [`StreamGeometryImplExt`](/docs/0.5.0/api/ferroui-base/media/trait-streamgeometryimplext/)
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToString`
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<PathGeometry>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`DefaultConstructible`](/docs/0.5.0/api/ferroui-base/trait-defaultconstructible/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`GeometryImpl`](/docs/0.5.0/api/ferroui-base/media/trait-geometryimpl/)
- [`StreamGeometryImpl`](/docs/0.5.0/api/ferroui-base/media/trait-streamgeometryimpl/)
- `Display`

## Availability

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