# AutomationPeer

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

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

```rust
struct AutomationPeer
```

Provides a base class that exposes an element to UI Automation.

The members named `*_core` are the overridable ones; the members without
the suffix are the public surface that automation clients call. The
members the reference declares abstract panic in this class: a peer class
overrides every one of them (deriving from `ControlAutomationPeer` does).

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

## Members

- [`TYPE`](#assoc_const-type)
- [`to_ref`](#function-to_ref)
- [`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)
- [`construct`](#function-construct)
- [`is_element_available`](#function-is_element_available)
- [`bring_into_view`](#function-bring_into_view)
- [`get_accelerator_key`](#function-get_accelerator_key)
- [`get_access_key`](#function-get_access_key)
- [`get_automation_control_type`](#function-get_automation_control_type)
- [`get_automation_id`](#function-get_automation_id)
- [`get_bounding_rectangle`](#function-get_bounding_rectangle)
- [`get_children`](#function-get_children)
- [`get_class_name`](#function-get_class_name)
- [`get_labeled_by`](#function-get_labeled_by)
- [`get_localized_control_type`](#function-get_localized_control_type)
- [`get_name`](#function-get_name)
- [`get_help_text`](#function-get_help_text)
- [`get_placeholder_text`](#function-get_placeholder_text)
- [`get_landmark_type`](#function-get_landmark_type)
- [`get_heading_level`](#function-get_heading_level)
- [`get_item_type`](#function-get_item_type)
- [`get_item_status`](#function-get_item_status)
- [`get_parent`](#function-get_parent)
- [`get_visual_root`](#function-get_visual_root)
- [`get_automation_root`](#function-get_automation_root)
- [`to_screen`](#function-to_screen)
- [`has_keyboard_focus`](#function-has_keyboard_focus)
- [`is_content_element`](#function-is_content_element)
- [`is_control_element`](#function-is_control_element)
- [`is_enabled`](#function-is_enabled)
- [`is_keyboard_focusable`](#function-is_keyboard_focusable)
- [`is_offscreen`](#function-is_offscreen)
- [`set_focus`](#function-set_focus)
- [`show_context_menu`](#function-show_context_menu)
- [`get_live_setting`](#function-get_live_setting)
- [`get_provider`](#function-get_provider)
- [`children_changed`](#function-children_changed)
- [`property_changed`](#function-property_changed)
- [`raise_children_changed_event`](#function-raise_children_changed_event)
- [`raise_property_changed_event`](#function-raise_property_changed_event)
- [`events_source`](#function-events_source)
- [`set_events_source`](#function-set_events_source)
- [`text_edit_text_changed`](#function-text_edit_text_changed)
- [`raise_text_edit_text_changed_event`](#function-raise_text_edit_text_changed_event)
- [`ensure_enabled`](#function-ensure_enabled)

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

### TYPE

```rust
const TYPE: &'static $crate::TypeInfo
```

The runtime type of this class.

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

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

### to_ref

```rust
fn to_ref(self: &Self) -> $crate::Ref<AutomationPeer>
```

Returns a strong reference to this object.

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

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

### get_localized_control_type_core

```rust
fn get_localized_control_type_core(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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(self: &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)

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

### construct

```rust
fn construct() -> Self
```

Creates the class data; see `ferroui_base::FerroObject::construct`.

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

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

### is_element_available

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

Whether the element of the peer still exists. The peer of a control
does not keep the control alive (the control owns its peer), so a
platform can still hold a peer whose control is gone; such a peer
answers every member below with an empty value (no name, no children,
no parent, no provider, not enabled) instead of reaching its control,
and a platform bridge reports the element as not available
(`UIA_E_ELEMENTNOTAVAILABLE` on Windows).

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

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

### bring_into_view

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

Attempts to bring the element associated with the automation peer into view.

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

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

### get_accelerator_key

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

Gets the accelerator key combinations for the element that is associated with the UI
Automation peer.

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

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

### get_access_key

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

Gets the access key for the element that is associated with the automation peer.

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

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

### get_automation_control_type

```rust
fn get_automation_control_type(self: &Self) -> AutomationControlType
```

Gets the control type for the element that is associated with the UI Automation peer.

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

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

### get_automation_id

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

Gets the automation ID of the element that is associated with the automation peer.

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

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

### get_bounding_rectangle

```rust
fn get_bounding_rectangle(self: &Self) -> Rect
```

Gets the bounding rectangle of the element that is associated with the automation peer
in top-level coordinates.

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

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

### get_children

```rust
fn get_children(self: &Self) -> Rc<Vec<Ref<AutomationPeer>>>
```

Gets the child automation peers.

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

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

### get_class_name

```rust
fn get_class_name(self: &Self) -> String
```

Gets a string that describes the class of the element.

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

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

### get_labeled_by

```rust
fn get_labeled_by(self: &Self) -> Option<Ref<AutomationPeer>>
```

Gets the automation peer for the label that is targeted to the element.

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

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

### get_localized_control_type

```rust
fn get_localized_control_type(self: &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#L453)

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

### get_name

```rust
fn get_name(self: &Self) -> String
```

Gets text that describes the element that is associated with this automation peer.

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

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

### get_help_text

```rust
fn get_help_text(self: &Self) -> String
```

Gets text that provides help for the element that is associated with this automation peer.

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

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

### get_placeholder_text

```rust
fn get_placeholder_text(self: &Self) -> String
```

Gets the placeholder text for the element that is associated with this automation peer.

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

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

### get_landmark_type

```rust
fn get_landmark_type(self: &Self) -> Option<AutomationLandmarkType>
```

Gets the control type for the element that is associated with the UI Automation peer.

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

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

### get_heading_level

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

Gets the heading level that is associated with this automation peer.

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

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

### get_item_type

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

Gets the item type that is associated with this automation peer.

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

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

### get_item_status

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

Gets the item status that is associated with this automation peer.

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

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

### get_parent

```rust
fn get_parent(self: &Self) -> Option<Ref<AutomationPeer>>
```

Gets the automation peer that is the parent of this automation peer.

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

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

### get_visual_root

```rust
fn get_visual_root(self: &Self) -> Option<Ref<AutomationPeer>>
```

Gets the automation peer that is the root of this automation peer's
visual tree (not for use outside the framework).

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

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

### get_automation_root

```rust
fn get_automation_root(self: &Self) -> Option<Ref<AutomationPeer>>
```

Gets the automation peer that is the root of this automation peer's
automation tree (not for use outside the framework).

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

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

### to_screen

```rust
fn to_screen(self: &Self, rect: Rect) -> Option<Rect>
```

Converts a rectangle in the coordinates of the visual root to screen
coordinates.

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

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

### has_keyboard_focus

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

Gets a value that indicates whether the element that is associated with this automation
peer currently has keyboard focus.

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

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

### is_content_element

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

Gets a value that indicates whether the element that is associated with this automation
peer contains data that is presented to the user.

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

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

### is_control_element

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

Gets a value that indicates whether the element is understood by the user as
interactive or as contributing to the logical structure of the control in the GUI.

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

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

### is_enabled

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

Gets a value indicating whether the control is enabled for user interaction.

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

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

### is_keyboard_focusable

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

Gets a value that indicates whether the element can accept keyboard focus.

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

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

### is_offscreen

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

Gets a value that indicates whether an element is off the screen.

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

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

### set_focus

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

Sets the keyboard focus on the element that is associated with this automation peer.

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

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

### show_context_menu

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

Shows the context menu for the element that is associated with this automation peer.
Returns true if a context menu is present for the element; otherwise false.

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

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

### get_live_setting

```rust
fn get_live_setting(self: &Self) -> AutomationLiveSetting
```

Gets the current live setting that is associated with this automation peer.

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

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

### get_provider

```rust
fn get_provider<I: ?Sized + 'static>(self: &Self) -> Option<Rc<I>>
```

Tries to get a provider of the specified contract from the peer:
`peer.get_provider::<dyn IInvokeProvider>()`.

Returns the provider, or `None` if the peer does not provide it.

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

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

### children_changed

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

Occurs when the children of the automation peer have changed.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the peer.

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

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

### property_changed

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

Occurs when a property value of the automation peer has changed.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the peer.

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

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

### raise_children_changed_event

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

Raises an event to notify the automation client the peer's children have changed.

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

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

### raise_property_changed_event

```rust
fn raise_property_changed_event(self: &Self, property: &'static AutomationProperty, old_value: Option<BoxedValue>, new_value: Option<BoxedValue>)
```

Raises an event to notify the automation client of a changed property value.

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

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

### events_source

```rust
fn events_source(self: &Self) -> Option<Ref<AutomationPeer>>
```

The peer used as the source of this peer's native text-edit events.
This relationship is weak: delegating an event never retains a control
tree, and self references or cycles do not create ownership cycles.

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

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

### set_events_source

```rust
fn set_events_source(self: &Self, value: impl Into<Nullable<AutomationPeer>>)
```



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

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

### text_edit_text_changed

```rust
fn text_edit_text_changed(self: &Self, handler: impl Fn(&TextEditTextChangedEventArgs) -> () + 'static) -> Subscription
```

Observes the text-edit events explicitly raised by this peer. A platform
receives the resolved EventsSource; this observation remains attached to
the original peer. Disposal and the observer handle retain it weakly.

Dropping the returned guard removes the handler; `Subscription::detach` keeps it for the
life of the peer.

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

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

### raise_text_edit_text_changed_event

```rust
fn raise_text_edit_text_changed_event(self: &Self, change_type: TextEditChangeType, changed_data: Vec<String>)
```

Raises the native text-edit event on any peer, independently of whether
it implements the TextEdit pattern. The platform creates its native
provider on demand. `None` has no event, matching the native contract.

EventsSource is read exactly once before invoking observers or platform
code. Reentrant source changes therefore affect the next event only.

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

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

### ensure_enabled

```rust
fn ensure_enabled(self: &Self) -> Result<(), ElementNotEnabledError>
```

Returns the error of an element that is not enabled unless the
element of the peer is enabled.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`AutomationPeerImplExt`](/docs/0.5.0/api/ferroui-controls/automation/peers/trait-automationpeerimplext/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- [`FerroObjectImplExt`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimplext/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Deref`
- [`Upcast<T>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`Upcast<AutomationPeer>`](/docs/0.5.0/api/ferroui-base/trait-upcast/)
- [`StaticType`](/docs/0.5.0/api/ferroui-base/trait-statictype/)
- [`ObjectType`](/docs/0.5.0/api/ferroui-base/trait-objecttype/)
- [`Subclassable<T>`](/docs/0.5.0/api/ferroui-base/trait-subclassable/)
- [`FerroObjectImpl`](/docs/0.5.0/api/ferroui-base/trait-ferroobjectimpl/)
- [`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/).
