# IGradientBrush

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

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

```rust
trait IGradientBrush: IBrush
```

A brush that draws with a gradient.

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

## Members

- [`gradient_stops`](#function-gradient_stops)
- [`spread_method`](#function-spread_method)

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

### gradient_stops

```rust
fn gradient_stops(self: &Self) -> Vec<Rc<dyn IGradientStop>>
```

The brush's gradient stops.

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

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

### spread_method

```rust
fn spread_method(self: &Self) -> GradientSpreadMethod
```

The brush's spread method that defines how to draw a gradient that
doesn't fill the bounds of the destination control.

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

## Trait implementations

- [`IGradientBrush`](/docs/0.5.0/api/ferroui-base/media/trait-igradientbrush/)

## Availability

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