# push_custom_effect_graph

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/rendering/composition/effects/function-push_custom_effect_graph/

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

```rust
fn push_custom_effect_graph(canvas: &mut dyn IDrawingContextImpl, effect: &crate::media::effects::ImmutableCustomEffect, bounds: crate::Rect) -> bool
```

Pushes the graph of the custom effect `effect` around the content drawn
next on `canvas`, over `bounds` (the content and the padding of the
effect, in the coordinates of the canvas): what is under the content and
the layers and effects that wrap it. Returns `false`, pushing nothing,
when the type of the effect has no graph that loaded
(`ImmutableCustomEffect::has_graph`); then the caller pushes it as an
effect of the drawing context, which draws the content unchanged.

[`pop_custom_effect_graph`](/docs/0.5.0/api/ferroui-base/rendering/composition/effects/function-pop_custom_effect_graph/) is called after the content with the same
effect and bounds.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/composition/effects/custom_effect_painting.rs#L74)

## Availability

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