Struct uiautomation::core::UITreeWalker

source ·
pub struct UITreeWalker { /* private fields */ }
Expand description

A wrapper for windows IUIAutomationTreeWalker interface.

Exposes properties and methods that UI Automation client applications use to view and navigate the UI Automation elements on the desktop.

Implementations§

source§

impl UITreeWalker

source

pub fn get_parent(&self, element: &UIElement) -> Result<UIElement>

Retrieves the parent element of the specified UI Automation element.

source

pub fn get_parent_build_cache( &self, element: &UIElement, cache_request: &UICacheRequest ) -> Result<UIElement>

Retrieves the parent element of the specified UI Automation element, and caches properties and control patterns.

source

pub fn get_first_child(&self, element: &UIElement) -> Result<UIElement>

Retrieves the first child element of the specified UI Automation element.

source

pub fn get_first_child_build_cache( &self, element: &UIElement, cache_request: &UICacheRequest ) -> Result<UIElement>

Retrieves the first child element of the specified UI Automation element, and caches properties and control patterns.

source

pub fn get_last_child(&self, element: &UIElement) -> Result<UIElement>

Retrieves the last child element of the specified UI Automation element.

source

pub fn get_last_child_build_cache( &self, element: &UIElement, cache_request: &UICacheRequest ) -> Result<UIElement>

Retrieves the last child element of the specified UI Automation element, and caches properties and control patterns.

source

pub fn get_next_sibling(&self, element: &UIElement) -> Result<UIElement>

Retrieves the next sibling element of the specified UI Automation element.

source

pub fn get_next_sibling_build_cache( &self, element: &UIElement, cache_request: &UICacheRequest ) -> Result<UIElement>

Retrieves the next sibling element of the specified UI Automation element, and caches properties and control patterns.

source

pub fn get_previous_sibling(&self, element: &UIElement) -> Result<UIElement>

Retrieves the previous sibling element of the specified UI Automation element.

source

pub fn get_previous_sibling_build_cache( &self, element: &UIElement, cache_request: &UICacheRequest ) -> Result<UIElement>

Retrieves the previous sibling element of the specified UI Automation element, and caches properties and control patterns.

source

pub fn normalize(&self, element: &UIElement) -> Result<UIElement>

Retrieves the ancestor element nearest to the specified Microsoft UI Automation element in the tree view.

source

pub fn normalize_build_cache( &self, element: &UIElement, cache_request: &UICacheRequest ) -> Result<UIElement>

Retrieves the ancestor element nearest to the specified Microsoft UI Automation element in the tree view, prefetches the requested properties and control patterns, and stores the prefetched items in the cache.

source

pub fn get_condition(&self) -> Result<UICondition>

Retrieves the condition that defines the view of the UI Automation tree.

Trait Implementations§

source§

impl AsRef<IUIAutomationTreeWalker> for UITreeWalker

source§

fn as_ref(&self) -> &IUIAutomationTreeWalker

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for UITreeWalker

source§

fn clone(&self) -> UITreeWalker

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl From<IUIAutomationTreeWalker> for UITreeWalker

source§

fn from(tree_walker: IUIAutomationTreeWalker) -> Self

Converts to this type from the input type.
source§

impl Into<IUIAutomationTreeWalker> for UITreeWalker

source§

fn into(self) -> IUIAutomationTreeWalker

Converts this type into the (usually inferred) input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.