# PlatformDrawingContext

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/struct-platformdrawingcontext/

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

```rust
struct PlatformDrawingContext<'a>
```

The drawing context core that draws straight to a platform drawing
context implementation.

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

## Members

- [`draw_rectangle_acrylic`](#function-draw_rectangle_acrylic)

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

### draw_rectangle_acrylic

```rust
fn draw_rectangle_acrylic(self: &mut Self, material: &dyn IExperimentalAcrylicMaterial, rect: RoundedRect)
```

Draws a rectangle filled with an acrylic-like material. A backend
without acrylic support gets the rectangle filled with the fallback
color of the material.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/platform_drawing_context.rs#L80)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ErasedDestructor`
- `IntoEither`
- [`IDrawingContextCore`](/docs/0.5.0/api/ferroui-base/media/trait-idrawingcontextcore/)

## Availability

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