# RendererDiagnostics

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/rendering/struct-rendererdiagnostics/

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

```rust
struct RendererDiagnostics
```

Manages configurable diagnostics that can be displayed by a renderer.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/renderer_diagnostics.rs#L9)

## Members

- [`DEBUG_OVERLAYS_PROPERTY_NAME`](#assoc_const-debug_overlays_property_name)
- [`LAST_LAYOUT_PASS_TIMING_PROPERTY_NAME`](#assoc_const-last_layout_pass_timing_property_name)
- [`new`](#function-new)
- [`debug_overlays`](#function-debug_overlays)
- [`set_debug_overlays`](#function-set_debug_overlays)
- [`property_changed`](#function-property_changed)

<a id="assoc_const-debug_overlays_property_name"></a>

### DEBUG_OVERLAYS_PROPERTY_NAME

```rust
const DEBUG_OVERLAYS_PROPERTY_NAME: &'static str
```

The name `property_changed` reports for
`debug_overlays`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/renderer_diagnostics.rs#L19)

<a id="assoc_const-last_layout_pass_timing_property_name"></a>

### LAST_LAYOUT_PASS_TIMING_PROPERTY_NAME

```rust
const LAST_LAYOUT_PASS_TIMING_PROPERTY_NAME: &'static str
```

The name `property_changed` reports for
`last_layout_pass_timing`.

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

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

### new

```rust
fn new() -> Rc<RendererDiagnostics>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/renderer_diagnostics.rs#L25)

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

### debug_overlays

```rust
fn debug_overlays(self: &Self) -> RendererDebugOverlays
```

Gets which debug overlays are displayed by the renderer.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/renderer_diagnostics.rs#L35)

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

### set_debug_overlays

```rust
fn set_debug_overlays(self: &Self, value: RendererDebugOverlays)
```

Sets which debug overlays are displayed by the renderer.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/renderer_diagnostics.rs#L40)

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

### property_changed

```rust
fn property_changed(self: &Self, handler: impl Fn(&RendererDiagnostics, &str) -> () + 'static) -> Subscription
```

Occurs when a property value changes. The handler receives the name
of the property. Dropping the returned guard removes the handler;
`Subscription::detach` keeps it for the life of the diagnostics.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/rendering/renderer_diagnostics.rs#L63)

## 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`

## Availability

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