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
impl UITreeWalker
sourcepub fn get_parent(&self, element: &UIElement) -> Result<UIElement>
pub fn get_parent(&self, element: &UIElement) -> Result<UIElement>
Retrieves the parent element of the specified UI Automation element.
sourcepub fn get_parent_build_cache(
&self,
element: &UIElement,
cache_request: &UICacheRequest
) -> Result<UIElement>
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.
sourcepub fn get_first_child(&self, element: &UIElement) -> Result<UIElement>
pub fn get_first_child(&self, element: &UIElement) -> Result<UIElement>
Retrieves the first child element of the specified UI Automation element.
sourcepub fn get_first_child_build_cache(
&self,
element: &UIElement,
cache_request: &UICacheRequest
) -> Result<UIElement>
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.
sourcepub fn get_last_child(&self, element: &UIElement) -> Result<UIElement>
pub fn get_last_child(&self, element: &UIElement) -> Result<UIElement>
Retrieves the last child element of the specified UI Automation element.
sourcepub fn get_last_child_build_cache(
&self,
element: &UIElement,
cache_request: &UICacheRequest
) -> Result<UIElement>
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.
sourcepub fn get_next_sibling(&self, element: &UIElement) -> Result<UIElement>
pub fn get_next_sibling(&self, element: &UIElement) -> Result<UIElement>
Retrieves the next sibling element of the specified UI Automation element.
sourcepub fn get_next_sibling_build_cache(
&self,
element: &UIElement,
cache_request: &UICacheRequest
) -> Result<UIElement>
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.
sourcepub fn get_previous_sibling(&self, element: &UIElement) -> Result<UIElement>
pub fn get_previous_sibling(&self, element: &UIElement) -> Result<UIElement>
Retrieves the previous sibling element of the specified UI Automation element.
sourcepub fn get_previous_sibling_build_cache(
&self,
element: &UIElement,
cache_request: &UICacheRequest
) -> Result<UIElement>
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.
sourcepub fn normalize(&self, element: &UIElement) -> Result<UIElement>
pub fn normalize(&self, element: &UIElement) -> Result<UIElement>
Retrieves the ancestor element nearest to the specified Microsoft UI Automation element in the tree view.
sourcepub fn normalize_build_cache(
&self,
element: &UIElement,
cache_request: &UICacheRequest
) -> Result<UIElement>
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.
sourcepub fn get_condition(&self) -> Result<UICondition>
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
impl AsRef<IUIAutomationTreeWalker> for UITreeWalker
source§impl Clone for UITreeWalker
impl Clone for UITreeWalker
source§fn clone(&self) -> UITreeWalker
fn clone(&self) -> UITreeWalker
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more