# GradientStopProps

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

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

```rust
trait GradientStopProps: ElementBuilder
```

The properties and routed events of `GradientStop`.

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

## Members

- [`offset`](#function-offset)
- [`color`](#function-color)

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

### offset

```rust
fn offset<M>(self: Self, value: impl IntoProp<f64, M>) -> Self
```

Sets `GradientStop::offset_property`.

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

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

### color

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

Sets `GradientStop::color_property`.

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

## Trait implementations

- [`GradientStopProps`](/docs/0.5.0/api/ferroui-view/generated/builders/trait-gradientstopprops/)

## Availability

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