# PathCommand

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/enum-pathcommand/

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

```rust
enum PathCommand
```

One call of the path markup parser on its geometry context.

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

## Members

- [`SetFillRule`](#variant-setfillrule)
- [`BeginFigure`](#variant-beginfigure)
- [`LineTo`](#variant-lineto)
- [`QuadraticBezierTo`](#variant-quadraticbezierto)
- [`CubicBezierTo`](#variant-cubicbezierto)
- [`ArcTo`](#variant-arcto)
- [`EndFigure`](#variant-endfigure)
- [`record`](#function-record)
- [`is_finite`](#function-is_finite)

<a id="variant-setfillrule"></a>

### SetFillRule

```rust
SetFillRule(crate::media::FillRule)
```

`set_fill_rule(fill_rule)`.

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

<a id="variant-beginfigure"></a>

### BeginFigure

```rust
BeginFigure(crate::Point, bool)
```

`begin_figure(start_point, is_filled)`.

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

<a id="variant-lineto"></a>

### LineTo

```rust
LineTo(crate::Point, bool)
```

`line_to(point, is_stroked)`.

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

<a id="variant-quadraticbezierto"></a>

### QuadraticBezierTo

```rust
QuadraticBezierTo(crate::Point, crate::Point, bool)
```

`quadratic_bezier_to(control_point, end_point, is_stroked)`.

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

<a id="variant-cubicbezierto"></a>

### CubicBezierTo

```rust
CubicBezierTo(crate::Point, crate::Point, crate::Point, bool)
```

`cubic_bezier_to(control_point1, control_point2, end_point, is_stroked)`.

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

<a id="variant-arcto"></a>

### ArcTo

```rust
ArcTo(crate::Point, crate::Size, f64, bool, crate::media::SweepDirection, bool)
```

`arc_to(point, size, rotation_angle, is_large_arc, sweep_direction, is_stroked)`.

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

<a id="variant-endfigure"></a>

### EndFigure

```rust
EndFigure(bool)
```

`end_figure(is_closed)`.

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

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

### record

```rust
fn record(path_data: &str) -> Result<Vec<PathCommand>, FormatError>
```

The calls `PathMarkupParser` makes for `path_data`, in order; the error of the parser
when it refuses the text.

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

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

### is_finite

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

Whether every number of the command is finite: what a constant table can state as
Rust literals.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Copy`
- `Debug`
- `StructuralPartialEq`
- `PartialEq`

## Availability

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