# ArcSegment

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

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

```rust
struct ArcSegment
```

An elliptical arc segment of a path figure.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`is_large_arc_property`](#function-is_large_arc_property)
- [`point_property`](#function-point_property)
- [`rotation_angle_property`](#function-rotation_angle_property)
- [`size_property`](#function-size_property)
- [`sweep_direction_property`](#function-sweep_direction_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`is_large_arc`](#function-is_large_arc)
- [`set_is_large_arc`](#function-set_is_large_arc)
- [`point`](#function-point)
- [`set_point`](#function-set_point)
- [`rotation_angle`](#function-rotation_angle)
- [`set_rotation_angle`](#function-set_rotation_angle)
- [`size`](#function-size)
- [`set_size`](#function-set_size)
- [`sweep_direction`](#function-sweep_direction)
- [`set_sweep_direction`](#function-set_sweep_direction)

<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/arc_segment.rs#L15)

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

### to_ref

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

Returns a strong reference to this object.

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

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

### is_large_arc_property

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



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

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

### point_property

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



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

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

### rotation_angle_property

```rust
fn rotation_angle_property() -> &'static StyledProperty<f64>
```



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

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

### size_property

```rust
fn size_property() -> &'static StyledProperty<Size>
```



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

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

### sweep_direction_property

```rust
fn sweep_direction_property() -> &'static StyledProperty<SweepDirection>
```



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

<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/arc_segment.rs#L69)

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

### new

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



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

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

### is_large_arc

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

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`.

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

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

### set_is_large_arc

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



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

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

### point

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

The destination point where the arc ends.

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

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

### set_point

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



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

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

### rotation_angle

```rust
fn rotation_angle(self: &Self) -> f64
```

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.

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

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

### set_rotation_angle

```rust
fn set_rotation_angle(self: &Self, value: f64)
```



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

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

### size

```rust
fn size(self: &Self) -> Size
```

The radii of the ellipse whose path is used to draw the arc.

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

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

### set_size

```rust
fn set_size(self: &Self, value: Size)
```



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

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

### sweep_direction

```rust
fn sweep_direction(self: &Self) -> SweepDirection
```

The sweep direction which indicates whether the arc is drawn in the
Clockwise or Counterclockwise direction.

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

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

### set_sweep_direction

```rust
fn set_sweep_direction(self: &Self, value: SweepDirection)
```



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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`PathSegmentImplExt`](/docs/0.5.0/api/ferroui-base/media/trait-pathsegmentimplext/)
- [`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<ArcSegment>`](/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/)
- [`PathSegmentImpl`](/docs/0.5.0/api/ferroui-base/media/trait-pathsegmentimpl/)

## Availability

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