# DrawingImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/trait-drawingimpl/

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

```rust
trait DrawingImpl: FerroObjectImpl + $crate::Upcast<Drawing>
```

The overridable members introduced by the class.

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

## Members

- [`draw_core`](#function-draw_core)
- [`get_bounds`](#function-get_bounds)

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

### draw_core

```rust
fn draw_core(this: &Self, context: &mut DrawingContext<'_>)
```

Draws the content to a drawing context; see `Drawing::draw`.

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

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

### get_bounds

```rust
fn get_bounds(this: &Self) -> Rect
```

The bounds of the drawn content.

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

## Trait implementations

- [`DrawingImpl`](/docs/0.5.0/api/ferroui-base/media/trait-drawingimpl/)

## Availability

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