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_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_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_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_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 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 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§fn as_ref(&self) -> &IUIAutomationTreeWalker
fn as_ref(&self) -> &IUIAutomationTreeWalker
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for UITreeWalker
impl Clone for UITreeWalker
source§fn clone(&self) -> UITreeWalker
fn clone(&self) -> UITreeWalker
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl From<IUIAutomationTreeWalker> for UITreeWalker
impl From<IUIAutomationTreeWalker> for UITreeWalker
source§fn from(tree_walker: IUIAutomationTreeWalker) -> Self
fn from(tree_walker: IUIAutomationTreeWalker) -> Self
Converts to this type from the input type.
source§impl Into<IUIAutomationTreeWalker> for UITreeWalker
impl Into<IUIAutomationTreeWalker> for UITreeWalker
source§fn into(self) -> IUIAutomationTreeWalker
fn into(self) -> IUIAutomationTreeWalker
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl RefUnwindSafe for UITreeWalker
impl !Send for UITreeWalker
impl !Sync for UITreeWalker
impl Unpin for UITreeWalker
impl UnwindSafe for UITreeWalker
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more