# PathFigure

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

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

```rust
struct PathFigure
```

Represents a subsection of a geometry: a single connected series of
segments.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`is_closed_property`](#function-is_closed_property)
- [`is_filled_property`](#function-is_filled_property)
- [`segments_property`](#function-segments_property)
- [`start_point_property`](#function-start_point_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`is_closed`](#function-is_closed)
- [`set_is_closed`](#function-set_is_closed)
- [`is_filled`](#function-is_filled)
- [`set_is_filled`](#function-set_is_filled)
- [`segments`](#function-segments)
- [`set_segments`](#function-set_segments)
- [`start_point`](#function-start_point)
- [`set_start_point`](#function-set_start_point)

<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_figure.rs#L25)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### is_closed_property

```rust
fn is_closed_property() -> &'static StyledProperty<bool>
```



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

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

### is_filled_property

```rust
fn is_filled_property() -> &'static StyledProperty<bool>
```



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

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

### segments_property

```rust
fn segments_property() -> &'static DirectProperty<PathFigure, Option<PathSegments>>
```



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

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

### start_point_property

```rust
fn start_point_property() -> &'static StyledProperty<Point>
```



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

<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_figure.rs#L64)

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

### new

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

Creates a figure with an empty segments collection.

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

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

### is_closed

```rust
fn is_closed(self: &Self) -> bool
```

Whether the figure is closed.

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

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

### set_is_closed

```rust
fn set_is_closed(self: &Self, value: bool)
```



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

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

### is_filled

```rust
fn is_filled(self: &Self) -> bool
```

Whether the figure is filled.

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

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

### set_is_filled

```rust
fn set_is_filled(self: &Self, value: bool)
```



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

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

### segments

```rust
fn segments(self: &Self) -> Option<PathSegments>
```

The segments of the figure.

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

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

### set_segments

```rust
fn set_segments(self: &Self, value: Option<PathSegments>)
```



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

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

### start_point

```rust
fn start_point(self: &Self) -> Point
```

The start point of the figure.

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

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

### set_start_point

```rust
fn set_start_point(self: &Self, value: Point)
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`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<PathFigure>`](/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/)
- `Display`

## Availability

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