# VisualExtensions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/trait-visualextensions/

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

```rust
trait VisualExtensions
```

Extension methods of controls for DevTools.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/visual_extensions.rs#L13)

## Members

- [`render_to`](#function-render_to)
- [`render_to_with_dpi`](#function-render_to_with_dpi)

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

### render_to

```rust
fn render_to(self: &Self, destination: &mut dyn Write) -> std::io::Result<()>
```

Render control to the destination stream, at 96 DPI.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/visual_extensions.rs#L15)

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

### render_to_with_dpi

```rust
fn render_to_with_dpi(self: &Self, destination: &mut dyn Write, dpi: f64) -> std::io::Result<()>
```

Render control to the destination stream.

`destination` is the destination stream; `dpi` the dpi quality. An error is what writing
the image to the stream fails with.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Diagnostics/diagnostics/visual_extensions.rs#L23)

## Trait implementations

- [`VisualExtensions`](/docs/0.5.0/api/ferroui-diagnostics/diagnostics/trait-visualextensions/)

## Availability

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