# shared_brush_of

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/function-shared_brush_of/

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

```rust
fn shared_brush_of(brush: &dyn IBrush) -> Option<SharedBrush>
```

The shared form of a brush: the one the brush keeps, or a copy of its
values made for the occasion when it keeps none (a brush type that only
implements the contract).

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

## Availability

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