# DevToolsOptions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-diagnostics/diagnostics/struct-devtoolsoptions/

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

```rust
struct DevToolsOptions
```

Describes options used to customize DevTools.

A class upstream: a shared handle (`Rc<DevToolsOptions>`) whose properties are read with
`foo()`, set with `set_foo(v)` and given with the chaining `with_foo(v)` while the options
are built; the members that upstream sets only when the object is created (`init`) have no
`set_foo`.

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

## Members

- [`new`](#function-new)
- [`gesture`](#function-gesture)
- [`set_gesture`](#function-set_gesture)
- [`with_gesture`](#function-with_gesture)
- [`show_as_child_window`](#function-show_as_child_window)
- [`set_show_as_child_window`](#function-set_show_as_child_window)
- [`with_show_as_child_window`](#function-with_show_as_child_window)
- [`size`](#function-size)
- [`set_size`](#function-set_size)
- [`with_size`](#function-with_size)
- [`startup_screen_index`](#function-startup_screen_index)
- [`set_startup_screen_index`](#function-set_startup_screen_index)
- [`with_startup_screen_index`](#function-with_startup_screen_index)
- [`show_implemented_interfaces`](#function-show_implemented_interfaces)
- [`set_show_implemented_interfaces`](#function-set_show_implemented_interfaces)
- [`with_show_implemented_interfaces`](#function-with_show_implemented_interfaces)
- [`screenshot_handler`](#function-screenshot_handler)
- [`set_screenshot_handler`](#function-set_screenshot_handler)
- [`with_screenshot_handler`](#function-with_screenshot_handler)
- [`theme_variant`](#function-theme_variant)
- [`set_theme_variant`](#function-set_theme_variant)
- [`with_theme_variant`](#function-with_theme_variant)
- [`focus_highlighter_brush`](#function-focus_highlighter_brush)
- [`set_focus_highlighter_brush`](#function-set_focus_highlighter_brush)
- [`with_focus_highlighter_brush`](#function-with_focus_highlighter_brush)
- [`launch_view`](#function-launch_view)
- [`with_launch_view`](#function-with_launch_view)
- [`hot_keys`](#function-hot_keys)
- [`with_hot_keys`](#function-with_hot_keys)

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

### new

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

C# `new DevToolsOptions()`: the default options.

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

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

### gesture

```rust
fn gesture(self: &Self) -> KeyGesture
```

Gets or sets the key gesture used to open DevTools.

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

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

### set_gesture

```rust
fn set_gesture(self: &Self, value: KeyGesture)
```



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

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

### with_gesture

```rust
fn with_gesture(self: Rc<Self>, value: KeyGesture) -> Rc<Self>
```



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

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

### show_as_child_window

```rust
fn show_as_child_window(self: &Self) -> bool
```

Gets or sets a value indicating whether DevTools should be displayed as a child window
of the window being inspected. The default value is true.

This setting is ignored if DevTools is attached to an application.

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

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

### set_show_as_child_window

```rust
fn set_show_as_child_window(self: &Self, value: bool)
```



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

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

### with_show_as_child_window

```rust
fn with_show_as_child_window(self: Rc<Self>, value: bool) -> Rc<Self>
```



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

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

### size

```rust
fn size(self: &Self) -> Size
```

Gets or sets the initial size of the DevTools window. The default value is 1280x720.

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

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

### set_size

```rust
fn set_size(self: &Self, value: Size)
```



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

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

### with_size

```rust
fn with_size(self: Rc<Self>, value: Size) -> Rc<Self>
```



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

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

### startup_screen_index

```rust
fn startup_screen_index(self: &Self) -> Option<i32>
```

Get or set the startup screen index where the DevTools window will be displayed.

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

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

### set_startup_screen_index

```rust
fn set_startup_screen_index(self: &Self, value: Option<i32>)
```



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

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

### with_startup_screen_index

```rust
fn with_startup_screen_index(self: Rc<Self>, value: Option<i32>) -> Rc<Self>
```



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

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

### show_implemented_interfaces

```rust
fn show_implemented_interfaces(self: &Self) -> bool
```

Gets or sets a value indicating whether DevTools should be displayed implemented interfaces on Control details. The default value is true.

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

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

### set_show_implemented_interfaces

```rust
fn set_show_implemented_interfaces(self: &Self, value: bool)
```



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

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

### with_show_implemented_interfaces

```rust
fn with_show_implemented_interfaces(self: Rc<Self>, value: bool) -> Rc<Self>
```



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

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

### screenshot_handler

```rust
fn screenshot_handler(self: &Self) -> Rc<dyn IScreenshotHandler>
```

Allow to customize SreenshotHandler

Default handler is `FilePickerHandler`

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

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

### set_screenshot_handler

```rust
fn set_screenshot_handler(self: &Self, value: Rc<dyn IScreenshotHandler>)
```



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

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

### with_screenshot_handler

```rust
fn with_screenshot_handler(self: Rc<Self>, value: Rc<dyn IScreenshotHandler>) -> Rc<Self>
```



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

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

### theme_variant

```rust
fn theme_variant(self: &Self) -> Option<ThemeVariant>
```

Gets or sets whether DevTools theme.

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

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

### set_theme_variant

```rust
fn set_theme_variant(self: &Self, value: Option<ThemeVariant>)
```



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

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

### with_theme_variant

```rust
fn with_theme_variant(self: Rc<Self>, value: Option<ThemeVariant>) -> Rc<Self>
```



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

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

### focus_highlighter_brush

```rust
fn focus_highlighter_brush(self: &Self) -> Option<Rc<dyn IBrush>>
```

Get or set Focus Highlighter brush

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

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

### set_focus_highlighter_brush

```rust
fn set_focus_highlighter_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
```



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

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

### with_focus_highlighter_brush

```rust
fn with_focus_highlighter_brush(self: Rc<Self>, value: Option<Rc<dyn IBrush>>) -> Rc<Self>
```



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

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

### launch_view

```rust
fn launch_view(self: &Self) -> DevToolsViewKind
```

Set the kind of diagnostic view that show at launch of DevTools

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

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

### with_launch_view

```rust
fn with_launch_view(self: Rc<Self>, value: DevToolsViewKind) -> Rc<Self>
```

Initializes `launch_view` (`init` upstream).

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

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

### hot_keys

```rust
fn hot_keys(self: &Self) -> Rc<HotKeyConfiguration>
```

Gets or inits the `HotKeyConfiguration` used to activate DevTools features

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

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

### with_hot_keys

```rust
fn with_hot_keys(self: Rc<Self>, value: Rc<HotKeyConfiguration>) -> Rc<Self>
```

Initializes `hot_keys` (`init` upstream).

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- [`TreeModel`](/docs/0.5.0/api/ferroui-treedatagrid-core/accessor/trait-treemodel/)
- `PartialEq`
- `Default`

## Availability

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