# StreamGeometryContext

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

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

```rust
struct StreamGeometryContext
```

Describes a geometry using drawing commands.

This type is used to describe a stream geometry: obtain one by calling
`StreamGeometry::open`. The context
is completed when it is disposed or dropped.

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

## Members

- [`precise_arc_to`](#function-precise_arc_to)

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

### precise_arc_to

```rust
fn precise_arc_to(self: &mut Self, point: Point, size: Size, rotation_angle: f64, is_large_arc: bool, sweep_direction: SweepDirection)
```

Draws an arc to the specified point using polylines, quadratic or cubic Bezier curves.
This is significantly more precise when drawing elliptic arcs with extreme width:height ratios.

The parameters are those of `IGeometryContext::arc_to`:

* `point` - The destination point where the arc ends.
* `size` - The radii of an ellipse whose path is used to draw the arc.
* `rotation_angle` - The rotation angle (in degrees) of the ellipse that specifies the path of
  the arc; positive values are clockwise. This will rotate the entire arc relative to the
  X-axis and is not commonly used.
* `is_large_arc` - Specifies whether the arc should follow the longer path around an ellipse
  rather than the shorter one. `true` to draw the arc greater than 180 degrees; otherwise,
  `false`.
* `sweep_direction` - A value that indicates whether the arc is drawn in the Clockwise or
  Counterclockwise direction.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `IGeometryContext`
- `Drop`

## Availability

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