Struct uiautomation::patterns::UITextPattern
source · pub struct UITextPattern { /* private fields */ }
Expand description
A Wrapper for IUIAutomationTextPattern
and IUIAutomationTextPattern2
Implementations§
source§impl UITextPattern
impl UITextPattern
pub fn get_range_from_point(&self, pt: Point) -> Result<UITextRange>
pub fn get_range_from_child(&self, child: &UIElement) -> Result<UITextRange>
pub fn get_selection(&self) -> Result<Vec<UITextRange>>
pub fn get_visible_ranges(&self) -> Result<Vec<UITextRange>>
pub fn get_document_range(&self) -> Result<UITextRange>
pub fn get_supported_text_selection(&self) -> Result<SupportedTextSelection>
pub fn get_range_from_annotation( &self, annotation: &UIElement ) -> Result<UITextRange>
pub fn get_caret_range(&self) -> Result<(bool, UITextRange)>
Trait Implementations§
source§impl AsRef<IUIAutomationTextPattern> for UITextPattern
impl AsRef<IUIAutomationTextPattern> for UITextPattern
source§impl AsRef<UITextPattern> for UITextEditPattern
impl AsRef<UITextPattern> for UITextEditPattern
source§fn as_ref(&self) -> &UITextPattern
fn as_ref(&self) -> &UITextPattern
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for UITextPattern
impl Clone for UITextPattern
source§fn clone(&self) -> UITextPattern
fn clone(&self) -> UITextPattern
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 Debug for UITextPattern
impl Debug for UITextPattern
source§impl From<IUIAutomationTextPattern> for UITextPattern
impl From<IUIAutomationTextPattern> for UITextPattern
source§impl Into<IUIAutomationTextPattern> for UITextPattern
impl Into<IUIAutomationTextPattern> for UITextPattern
source§impl TryFrom<IUnknown> for UITextPattern
impl TryFrom<IUnknown> for UITextPattern
source§impl UIPattern for UITextPattern
impl UIPattern for UITextPattern
source§const TYPE: UIPatternType = UIPatternType::Text
const TYPE: UIPatternType = UIPatternType::Text
Defines the pattern type id.
Auto Trait Implementations§
impl Freeze for UITextPattern
impl RefUnwindSafe for UITextPattern
impl !Send for UITextPattern
impl !Sync for UITextPattern
impl Unpin for UITextPattern
impl UnwindSafe for UITextPattern
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