# AutomationPeerImpl

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/automation/peers/trait-automationpeerimpl/

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

```rust
trait AutomationPeerImpl: FerroObjectImpl + $crate::Upcast<AutomationPeer>
```

The overridable members introduced by the class.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

## Members

- [`get_localized_control_type_core`](#function-get_localized_control_type_core)
- [`bring_into_view_core`](#function-bring_into_view_core)
- [`get_accelerator_key_core`](#function-get_accelerator_key_core)
- [`get_access_key_core`](#function-get_access_key_core)
- [`get_automation_control_type_core`](#function-get_automation_control_type_core)
- [`get_automation_id_core`](#function-get_automation_id_core)
- [`get_bounding_rectangle_core`](#function-get_bounding_rectangle_core)
- [`get_or_create_children_core`](#function-get_or_create_children_core)
- [`get_class_name_core`](#function-get_class_name_core)
- [`get_labeled_by_core`](#function-get_labeled_by_core)
- [`get_name_core`](#function-get_name_core)
- [`get_help_text_core`](#function-get_help_text_core)
- [`get_placeholder_text_core`](#function-get_placeholder_text_core)
- [`get_landmark_type_core`](#function-get_landmark_type_core)
- [`get_heading_level_core`](#function-get_heading_level_core)
- [`get_item_type_core`](#function-get_item_type_core)
- [`get_item_status_core`](#function-get_item_status_core)
- [`get_parent_core`](#function-get_parent_core)
- [`has_keyboard_focus_core`](#function-has_keyboard_focus_core)
- [`is_content_element_core`](#function-is_content_element_core)
- [`is_control_element_core`](#function-is_control_element_core)
- [`is_enabled_core`](#function-is_enabled_core)
- [`is_keyboard_focusable_core`](#function-is_keyboard_focusable_core)
- [`is_offscreen_core`](#function-is_offscreen_core)
- [`set_focus_core`](#function-set_focus_core)
- [`show_context_menu_core`](#function-show_context_menu_core)
- [`get_live_setting_core`](#function-get_live_setting_core)
- [`get_control_type_override_core`](#function-get_control_type_override_core)
- [`get_class_name_override_core`](#function-get_class_name_override_core)
- [`get_automation_root_core`](#function-get_automation_root_core)
- [`get_visual_root_core`](#function-get_visual_root_core)
- [`to_screen_core`](#function-to_screen_core)
- [`is_content_element_override_core`](#function-is_content_element_override_core)
- [`is_control_element_override_core`](#function-is_control_element_override_core)
- [`get_provider_core`](#function-get_provider_core)
- [`try_set_parent`](#function-try_set_parent)
- [`is_element_available_core`](#function-is_element_available_core)

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

### get_localized_control_type_core

```rust
fn get_localized_control_type_core(this: &Self) -> String
```

Gets a human-readable localized string that represents the type of the control
that is associated with this automation peer.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### bring_into_view_core

```rust
fn bring_into_view_core(this: &Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_accelerator_key_core

```rust
fn get_accelerator_key_core(this: &Self) -> Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_access_key_core

```rust
fn get_access_key_core(this: &Self) -> Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_automation_control_type_core

```rust
fn get_automation_control_type_core(this: &Self) -> AutomationControlType
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_automation_id_core

```rust
fn get_automation_id_core(this: &Self) -> Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_bounding_rectangle_core

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_or_create_children_core

```rust
fn get_or_create_children_core(this: &Self) -> Rc<Vec<Ref<AutomationPeer>>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_class_name_core

```rust
fn get_class_name_core(this: &Self) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_labeled_by_core

```rust
fn get_labeled_by_core(this: &Self) -> Option<Ref<AutomationPeer>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_name_core

```rust
fn get_name_core(this: &Self) -> Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_help_text_core

```rust
fn get_help_text_core(this: &Self) -> Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_placeholder_text_core

```rust
fn get_placeholder_text_core(this: &Self) -> Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_landmark_type_core

```rust
fn get_landmark_type_core(this: &Self) -> Option<AutomationLandmarkType>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_heading_level_core

```rust
fn get_heading_level_core(this: &Self) -> i32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_item_type_core

```rust
fn get_item_type_core(this: &Self) -> Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_item_status_core

```rust
fn get_item_status_core(this: &Self) -> Option<String>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_parent_core

```rust
fn get_parent_core(this: &Self) -> Option<Ref<AutomationPeer>>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### has_keyboard_focus_core

```rust
fn has_keyboard_focus_core(this: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### is_content_element_core

```rust
fn is_content_element_core(this: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### is_control_element_core

```rust
fn is_control_element_core(this: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### is_enabled_core

```rust
fn is_enabled_core(this: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### is_keyboard_focusable_core

```rust
fn is_keyboard_focusable_core(this: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### is_offscreen_core

```rust
fn is_offscreen_core(this: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### set_focus_core

```rust
fn set_focus_core(this: &Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### show_context_menu_core

```rust
fn show_context_menu_core(this: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_live_setting_core

```rust
fn get_live_setting_core(this: &Self) -> AutomationLiveSetting
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_control_type_override_core

```rust
fn get_control_type_override_core(this: &Self) -> AutomationControlType
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_class_name_override_core

```rust
fn get_class_name_override_core(this: &Self) -> String
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_automation_root_core

```rust
fn get_automation_root_core(this: &Self) -> Option<Ref<AutomationPeer>>
```

Gets the root of the automation tree of the peer (not for use
outside the framework).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_visual_root_core

```rust
fn get_visual_root_core(this: &Self) -> Option<Ref<AutomationPeer>>
```

Gets the peer of the visual root of the element (not for use
outside the framework).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### to_screen_core

```rust
fn to_screen_core(this: &Self, rect: Rect) -> Option<Rect>
```

Converts a rectangle in the coordinates of the visual root to
screen coordinates (not for use outside the framework).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### is_content_element_override_core

```rust
fn is_content_element_override_core(this: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### is_control_element_override_core

```rust
fn is_control_element_override_core(this: &Self) -> bool
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### get_provider_core

```rust
fn get_provider_core(this: &Self, provider_type: ValueType) -> Option<BoxedValue>
```

Gets the handle of the provider contract `provider_type` (the
type of the handle, for example `Rc<dyn IInvokeProvider>`) if the
peer provides it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### try_set_parent

```rust
fn try_set_parent(this: &Self, parent: Option<Ref<AutomationPeer>>) -> bool
```

Sets the parent of the peer; returns whether the peer accepted
it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

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

### is_element_available_core

```rust
fn is_element_available_core(this: &Self) -> bool
```

Whether the element of the peer still exists (true by default;
a `ControlAutomationPeer` whose control is gone answers false).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/automation/peers/automation_peer.rs#L96)

## Trait implementations

- [`AutomationPeerImpl`](/docs/0.5.0/api/ferroui-controls/automation/peers/trait-automationpeerimpl/)

## Availability

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