# IRadialGradientBrush

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/trait-iradialgradientbrush/

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

```rust
trait IRadialGradientBrush: IGradientBrush
```

Paints an area with a radial gradient.

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

## Members

- [`center`](#function-center)
- [`gradient_origin`](#function-gradient_origin)
- [`radius_x`](#function-radius_x)
- [`radius_y`](#function-radius_y)

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

### center

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

The start point for the gradient.

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

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

### gradient_origin

```rust
fn gradient_origin(self: &Self) -> RelativePoint
```

The location of the two-dimensional focal point that defines the
beginning of the gradient.

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

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

### radius_x

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

The horizontal radius of the outermost circle of the radial gradient.

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

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

### radius_y

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

The vertical radius of the outermost circle of the radial gradient.

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

## Trait implementations

- [`IRadialGradientBrush`](/docs/0.5.0/api/ferroui-base/media/trait-iradialgradientbrush/)

## Availability

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