# affects_render_source

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

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

```rust
fn affects_render_source(value: &dyn Any) -> Option<&dyn IAffectsRender>
```

The media object a property value holds whose changes affect rendering,
when it holds one.

`value` is the untyped value of a property as carried by a property change
notification; the property types that can hold an [`IAffectsRender`](/docs/0.5.0/api/ferroui-base/media/trait-iaffectsrender/) are
recognised: optional brushes, pens, transforms, effects and images (as
interface handles) and optional geometries and transforms (as class
handles). Returns `None` when the value is of another type, is absent or
is immutable.

This is the counterpart of testing a property value for the interface.
A caller that builds a handler for the object asks here first, so that a
value with nothing to subscribe to (an immutable brush, no brush) costs
it no handler.

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

## Availability

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