# MainViewModel

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

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

```rust
struct MainViewModel
```

The view model of the developer tools window: the pages (the logical
and visual trees, the events and the hot keys), the selected tab, the
focused element and the element under the pointer, the overlays of the
renderer, the screenshot of the selected control and the options.

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

## Members

- [`COMBINED_TREE_TAB`](#assoc_const-combined_tree_tab)
- [`LOGICAL_TREE_TAB`](#assoc_const-logical_tree_tab)
- [`VISUAL_TREE_TAB`](#assoc_const-visual_tree_tab)
- [`EVENTS_TAB`](#assoc_const-events_tab)
- [`HOT_KEYS_TAB`](#assoc_const-hot_keys_tab)
- [`FIRST_EXTENSION_TAB`](#assoc_const-first_extension_tab)
- [`new`](#function-new)
- [`root`](#function-root)
- [`combined_tree`](#function-combined_tree)
- [`logical_tree`](#function-logical_tree)
- [`visual_tree`](#function-visual_tree)
- [`events`](#function-events)
- [`hot_keys`](#function-hot_keys)
- [`freeze_popups`](#function-freeze_popups)
- [`set_freeze_popups`](#function-set_freeze_popups)
- [`is_tree_pane_open`](#function-is_tree_pane_open)
- [`set_is_tree_pane_open`](#function-set_is_tree_pane_open)
- [`toggle_tree_pane`](#function-toggle_tree_pane)
- [`is_side_pane_open`](#function-is_side_pane_open)
- [`set_is_side_pane_open`](#function-set_is_side_pane_open)
- [`toggle_side_pane`](#function-toggle_side_pane)
- [`should_visualize_margin_padding`](#function-should_visualize_margin_padding)
- [`set_should_visualize_margin_padding`](#function-set_should_visualize_margin_padding)
- [`toggle_visualize_margin_padding`](#function-toggle_visualize_margin_padding)
- [`show_dirty_rects_overlay`](#function-show_dirty_rects_overlay)
- [`set_show_dirty_rects_overlay`](#function-set_show_dirty_rects_overlay)
- [`toggle_dirty_rects_overlay`](#function-toggle_dirty_rects_overlay)
- [`show_fps_overlay`](#function-show_fps_overlay)
- [`set_show_fps_overlay`](#function-set_show_fps_overlay)
- [`toggle_fps_overlay`](#function-toggle_fps_overlay)
- [`show_layout_time_graph_overlay`](#function-show_layout_time_graph_overlay)
- [`set_show_layout_time_graph_overlay`](#function-set_show_layout_time_graph_overlay)
- [`toggle_layout_time_graph_overlay`](#function-toggle_layout_time_graph_overlay)
- [`show_render_time_graph_overlay`](#function-show_render_time_graph_overlay)
- [`set_show_render_time_graph_overlay`](#function-set_show_render_time_graph_overlay)
- [`toggle_render_time_graph_overlay`](#function-toggle_render_time_graph_overlay)
- [`content`](#function-content)
- [`selected_tab`](#function-selected_tab)
- [`set_selected_tab`](#function-set_selected_tab)
- [`focused_control`](#function-focused_control)
- [`pointer_over_root`](#function-pointer_over_root)
- [`pointer_over_element`](#function-pointer_over_element)
- [`pointer_over_element_name`](#function-pointer_over_element_name)
- [`show_hot_keys`](#function-show_hot_keys)
- [`select_control`](#function-select_control)
- [`enable_snapshot_styles`](#function-enable_snapshot_styles)
- [`dispose`](#function-dispose)
- [`request_tree_navigate_to`](#function-request_tree_navigate_to)
- [`startup_screen_index`](#function-startup_screen_index)
- [`can_shot`](#function-can_shot)
- [`shot`](#function-shot)
- [`set_options`](#function-set_options)
- [`show_implemented_interfaces`](#function-show_implemented_interfaces)
- [`toggle_show_implemented_interfaces`](#function-toggle_show_implemented_interfaces)
- [`show_details_property_type`](#function-show_details_property_type)
- [`toggle_show_details_property_type`](#function-toggle_show_details_property_type)
- [`focus_highlighter`](#function-focus_highlighter)
- [`select_focus_highlighter`](#function-select_focus_highlighter)
- [`pinned_properties`](#function-pinned_properties)
- [`register_page`](#function-register_page)
- [`registered_pages`](#function-registered_pages)
- [`extension_pages`](#function-extension_pages)

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

### COMBINED_TREE_TAB

```rust
const COMBINED_TREE_TAB: i32
```

Addition of the port: the tab of the combined tree, the first one.

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

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

### LOGICAL_TREE_TAB

```rust
const LOGICAL_TREE_TAB: i32
```

The tab of the logical tree (upstream's first).

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

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

### VISUAL_TREE_TAB

```rust
const VISUAL_TREE_TAB: i32
```

The tab of the visual tree.

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

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

### EVENTS_TAB

```rust
const EVENTS_TAB: i32
```

The tab of the routed events.

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

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

### HOT_KEYS_TAB

```rust
const HOT_KEYS_TAB: i32
```

The tab of the hot keys (hidden; the View menu selects it).

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

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

### FIRST_EXTENSION_TAB

```rust
const FIRST_EXTENSION_TAB: i32
```

Addition of the port: the index of the tab of the first extension
page (`DevToolsPage`), after the five tabs of the tools.

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

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

### new

```rust
fn new(root: Ref<FerroObject>) -> Rc<Self>
```

C# `new MainViewModel(FerroObject root)`: the developer tools of
`root`, a top level or the application the tools are attached to.

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

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

### root

```rust
fn root(self: &Self) -> Ref<FerroObject>
```

Addition of the port: the object the developer tools inspect (the
root the view model was created with).

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

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

### combined_tree

```rust
fn combined_tree(self: &Self) -> Rc<TreePageViewModel>
```

The page of the logical tree.
The page of the combined tree (an addition of the port).

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

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

### logical_tree

```rust
fn logical_tree(self: &Self) -> Rc<TreePageViewModel>
```



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

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

### visual_tree

```rust
fn visual_tree(self: &Self) -> Rc<TreePageViewModel>
```

The page of the visual tree.

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

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

### events

```rust
fn events(self: &Self) -> Rc<EventsPageViewModel>
```

The events page.

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

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

### hot_keys

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

The hot keys page.

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

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

### freeze_popups

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



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

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

### set_freeze_popups

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



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

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

### is_tree_pane_open

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

Addition of the port: whether the left pane of the pages (the tree of a tree page, the
routed events of the events page) is shown; the button at the left of the header of the
tools toggles it.

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

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

### set_is_tree_pane_open

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



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

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

### toggle_tree_pane

```rust
fn toggle_tree_pane(self: &Self)
```

Shows or hides the left pane of the pages.

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

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

### is_side_pane_open

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

Addition of the port: whether the side pane of the details of a control (the layout, the
value frames, the pseudo-classes, at the right of the properties) is shown; a toggle of the
command bar of the header shows or hides it.

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

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

### set_is_side_pane_open

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



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

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

### toggle_side_pane

```rust
fn toggle_side_pane(self: &Self)
```

Shows or hides the side pane of the details of a control.

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

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

### should_visualize_margin_padding

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



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

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

### set_should_visualize_margin_padding

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



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

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

### toggle_visualize_margin_padding

```rust
fn toggle_visualize_margin_padding(self: &Self)
```



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

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

### show_dirty_rects_overlay

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



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

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

### set_show_dirty_rects_overlay

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



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

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

### toggle_dirty_rects_overlay

```rust
fn toggle_dirty_rects_overlay(self: &Self)
```



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

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

### show_fps_overlay

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



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

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

### set_show_fps_overlay

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



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

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

### toggle_fps_overlay

```rust
fn toggle_fps_overlay(self: &Self)
```



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

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

### show_layout_time_graph_overlay

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



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

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

### set_show_layout_time_graph_overlay

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



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

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

### toggle_layout_time_graph_overlay

```rust
fn toggle_layout_time_graph_overlay(self: &Self)
```



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

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

### show_render_time_graph_overlay

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



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

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

### set_show_render_time_graph_overlay

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



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

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

### toggle_render_time_graph_overlay

```rust
fn toggle_render_time_graph_overlay(self: &Self)
```



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

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

### content

```rust
fn content(self: &Self) -> Option<BoxedValue>
```

The content of the selected tab: the view model of the page, or the
view of an extension page.

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

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

### selected_tab

```rust
fn selected_tab(self: &Self) -> i32
```

The index of the selected tab: 0 the combined tree (an addition of the
port), 1 the logical tree, 2 the visual tree, 3 the events, 4 the hot
keys (upstream: 0 to 3, from the logical tree); from
`FIRST_EXTENSION_TAB` on, the extension
pages (an addition of the port). Any other index selects the combined
tree.

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

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

### set_selected_tab

```rust
fn set_selected_tab(self: &Self, value: i32)
```



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

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

### focused_control

```rust
fn focused_control(self: &Self) -> Option<String>
```



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

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

### pointer_over_root

```rust
fn pointer_over_root(self: &Self) -> Option<Rc<dyn IInputRoot>>
```

The input root the pointer is over.

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

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

### pointer_over_element

```rust
fn pointer_over_element(self: &Self) -> Option<Ref<InputElement>>
```

The element under the pointer.

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

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

### pointer_over_element_name

```rust
fn pointer_over_element_name(self: &Self) -> Option<String>
```

The name of the type of the element under the pointer.

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

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

### show_hot_keys

```rust
fn show_hot_keys(self: &Self)
```

Selects the hot keys tab.

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

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

### select_control

```rust
fn select_control(self: &Self, control: &Ref<Control>)
```

Selects `control` in the tree page that is the content.

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

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

### enable_snapshot_styles

```rust
fn enable_snapshot_styles(self: &Self, enable: bool)
```

Freezes (`true`) or resumes the value frames of the control details
of the tree page that is the content.

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

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

### dispose

```rust
fn dispose(self: &Self)
```

C# `Dispose()`: ends the subscriptions, disposes the trees and the
highlight of the focused element, and turns the overlays of the
renderer off.

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

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

### request_tree_navigate_to

```rust
fn request_tree_navigate_to(self: &Self, control: &Ref<Control>, is_visual_tree: bool)
```

Selects `control` in the logical or the visual tree page, and that
page, if the tree has a node of it.

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

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

### startup_screen_index

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

The index of the screen the window opens maximized on.

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

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

### can_shot

```rust
fn can_shot(self: &Self, _parameter: Option<BoxedValue>) -> bool
```

Whether a screenshot of the selected control can be taken: the
content is a tree page whose selected node is a visual in a visual
tree.

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

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

### shot

```rust
fn shot(self: &Self, _parameter: Option<BoxedValue>)
```

Takes a screenshot of the control selected in the tree page that is
the content, with the screenshot handler of the options.

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

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

### set_options

```rust
fn set_options(self: &Self, options: &DevToolsOptions)
```

Applies the options the developer tools were opened with.

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

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

### show_implemented_interfaces

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



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

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

### toggle_show_implemented_interfaces

```rust
fn toggle_show_implemented_interfaces(self: &Self, _parameter: Option<BoxedValue>)
```



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

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

### show_details_property_type

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



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

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

### toggle_show_details_property_type

```rust
fn toggle_show_details_property_type(self: &Self, _parameter: Option<BoxedValue>)
```



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

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

### focus_highlighter

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

The brush that highlights the focused element; `None` for no
highlight.

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

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

### select_focus_highlighter

```rust
fn select_focus_highlighter(self: &Self, parameter: Option<BoxedValue>)
```

Selects the brush that highlights the focused element (C#
`parameter as IBrush`).

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

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

### pinned_properties

```rust
fn pinned_properties(self: &Self) -> Rc<RefCell<HashSet<String>>>
```

The pinned properties of the control details, shared by the tree
pages.

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

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

### register_page

```rust
fn register_page(page: DevToolsPage) -> Rc<dyn IDisposable>
```

Registers a page for the developer tools windows opened afterwards on
this thread. Disposing the returned handle removes the registration.

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

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

### registered_pages

```rust
fn registered_pages() -> Vec<DevToolsPage>
```

The pages registered on this thread, in the order of their
registrations.

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

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

### extension_pages

```rust
fn extension_pages(self: &Self) -> Vec<DevToolsPage>
```

The extension pages of this window, in the order of their tabs: the
page at index `i` has the tab `FIRST_EXTENSION_TAB + i`.

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

## 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`
- [`INotifyPropertyChanged`](/docs/0.5.0/api/ferroui-base/data/model/use-inotifypropertychanged/)
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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