# PolylineGeometry

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

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

```rust
struct PolylineGeometry
```

Represents the geometry of a polyline or polygon.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`points_property`](#function-points_property)
- [`is_filled_property`](#function-is_filled_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_points`](#function-with_points)
- [`with_points_and_fill_rule`](#function-with_points_and_fill_rule)
- [`points`](#function-points)
- [`set_points`](#function-set_points)
- [`is_filled`](#function-is_filled)
- [`set_is_filled`](#function-set_is_filled)
- [`fill_rule`](#function-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/polyline_geometry.rs#L20)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### points_property

```rust
fn points_property() -> &'static DirectProperty<PolylineGeometry, Option<Points>>
```



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

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

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

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

### new

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



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

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

### with_points

```rust
fn with_points(points: impl IntoIterator<Item = Point>, is_filled: bool) -> Ref<Self>
```

Creates a polyline geometry with a copy of the given points.

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

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

### with_points_and_fill_rule

```rust
fn with_points_and_fill_rule(points: impl IntoIterator<Item = Point>, is_filled: bool, fill_rule: FillRule) -> Ref<Self>
```

Creates a polyline geometry with a copy of the given points and the
given fill rule.

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

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

### points

```rust
fn points(self: &Self) -> Points
```

The figure's points. Panics if the property has been cleared.

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

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

### set_points

```rust
fn set_points(self: &Self, value: Points)
```



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

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

### is_filled

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

Whether the geometry is filled.

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

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

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

### fill_rule

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

How the intersecting areas of the geometry are combined.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`GeometryImplExt`](/docs/0.5.0/api/ferroui-base/media/trait-geometryimplext/)
- [`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`
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<PolylineGeometry>`](/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/)

## Availability

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