# GradientBrushProps

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-view/generated/builders/trait-gradientbrushprops/

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

```rust
trait GradientBrushProps: ElementBuilder
```

The properties and routed events of `GradientBrush`.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4174)

## Members

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

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

### spread_method

```rust
fn spread_method<M>(self: Self, value: impl IntoProp<ferroui_base::media::GradientSpreadMethod, M>) -> Self
```

Sets `GradientBrush::spread_method_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4176)

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

### gradient_stops

```rust
fn gradient_stops<M>(self: Self, value: impl IntoProp<Option<ferroui_base::media::GradientStops>, M>) -> Self
```

Sets `GradientBrush::gradient_stops_property`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.View/generated/builders.rs#L4181)

## Trait implementations

- [`GradientBrushProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-gradientbrushprops/)

## Availability

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