# EllipseGeometry

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

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

```rust
struct EllipseGeometry
```

Represents the geometry of an ellipse or circle.

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`rect_property`](#function-rect_property)
- [`radius_x_property`](#function-radius_x_property)
- [`radius_y_property`](#function-radius_y_property)
- [`center_property`](#function-center_property)
- [`construct`](#function-construct)
- [`new`](#function-new)
- [`with_rect`](#function-with_rect)
- [`rect`](#function-rect)
- [`set_rect`](#function-set_rect)
- [`radius_x`](#function-radius_x)
- [`set_radius_x`](#function-set_radius_x)
- [`radius_y`](#function-radius_y)
- [`set_radius_y`](#function-set_radius_y)
- [`center`](#function-center)
- [`set_center`](#function-set_center)

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

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

### to_ref

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

Returns a strong reference to this object.

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

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

### rect_property

```rust
fn rect_property() -> &'static StyledProperty<Rect>
```



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

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

### radius_x_property

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



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

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

### radius_y_property

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



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

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

### center_property

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



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

<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/ellipse_geometry.rs#L93)

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

### new

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



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

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

### with_rect

```rust
fn with_rect(rect: Rect) -> Ref<Self>
```

Creates an ellipse geometry filling the given bounds.

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

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

### rect

```rust
fn rect(self: &Self) -> Rect
```

A rect that defines the bounds of the ellipse. When set, this takes priority over the other properties that define an ellipse using a center point and X/Y-axis radii.

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

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

### set_rect

```rust
fn set_rect(self: &Self, value: Rect)
```



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

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

### radius_x

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

A double that defines the radius in the X-axis of the ellipse. In other words, the horizontal half-extent of the ellipse.

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

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

### set_radius_x

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



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

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

### radius_y

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

A double that defines the radius in the Y-axis of the ellipse. In other words, the vertical half-extent of the ellipse.

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

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

### set_radius_y

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



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

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

### center

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

A point that defines the center of the ellipse.

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

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

### set_center

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



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

## 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<EllipseGeometry>`](/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/).
