Struct windows::Win32::UI::Accessibility::IUIAutomation2

pub struct IUIAutomation2(/* private fields */);

Implementations§

§

impl IUIAutomation2

pub unsafe fn AutoSetFocus(&self) -> Result<BOOL>

pub unsafe fn SetAutoSetFocus<P0>(&self, autosetfocus: P0) -> Result<()>
where P0: Param<BOOL>,

pub unsafe fn ConnectionTimeout(&self) -> Result<u32>

pub unsafe fn SetConnectionTimeout(&self, timeout: u32) -> Result<()>

pub unsafe fn TransactionTimeout(&self) -> Result<u32>

pub unsafe fn SetTransactionTimeout(&self, timeout: u32) -> Result<()>

Methods from Deref<Target = IUIAutomation>§

pub unsafe fn CompareElements<P0, P1>(&self, el1: P0, el2: P1) -> Result<BOOL>
where P0: Param<IUIAutomationElement>, P1: Param<IUIAutomationElement>,

pub unsafe fn CompareRuntimeIds( &self, runtimeid1: *const SAFEARRAY, runtimeid2: *const SAFEARRAY, ) -> Result<BOOL>

pub unsafe fn GetRootElement(&self) -> Result<IUIAutomationElement>

pub unsafe fn ElementFromHandle<P0>( &self, hwnd: P0, ) -> Result<IUIAutomationElement>
where P0: Param<HWND>,

pub unsafe fn ElementFromPoint(&self, pt: POINT) -> Result<IUIAutomationElement>

pub unsafe fn GetFocusedElement(&self) -> Result<IUIAutomationElement>

pub unsafe fn GetRootElementBuildCache<P0>( &self, cacherequest: P0, ) -> Result<IUIAutomationElement>
where P0: Param<IUIAutomationCacheRequest>,

pub unsafe fn ElementFromHandleBuildCache<P0, P1>( &self, hwnd: P0, cacherequest: P1, ) -> Result<IUIAutomationElement>
where P0: Param<HWND>, P1: Param<IUIAutomationCacheRequest>,

pub unsafe fn ElementFromPointBuildCache<P0>( &self, pt: POINT, cacherequest: P0, ) -> Result<IUIAutomationElement>
where P0: Param<IUIAutomationCacheRequest>,

pub unsafe fn GetFocusedElementBuildCache<P0>( &self, cacherequest: P0, ) -> Result<IUIAutomationElement>
where P0: Param<IUIAutomationCacheRequest>,

pub unsafe fn CreateTreeWalker<P0>( &self, pcondition: P0, ) -> Result<IUIAutomationTreeWalker>
where P0: Param<IUIAutomationCondition>,

pub unsafe fn ControlViewWalker(&self) -> Result<IUIAutomationTreeWalker>

pub unsafe fn ContentViewWalker(&self) -> Result<IUIAutomationTreeWalker>

pub unsafe fn RawViewWalker(&self) -> Result<IUIAutomationTreeWalker>

pub unsafe fn RawViewCondition(&self) -> Result<IUIAutomationCondition>

pub unsafe fn ControlViewCondition(&self) -> Result<IUIAutomationCondition>

pub unsafe fn ContentViewCondition(&self) -> Result<IUIAutomationCondition>

pub unsafe fn CreateCacheRequest(&self) -> Result<IUIAutomationCacheRequest>

pub unsafe fn CreateTrueCondition(&self) -> Result<IUIAutomationCondition>

pub unsafe fn CreateFalseCondition(&self) -> Result<IUIAutomationCondition>

pub unsafe fn CreatePropertyCondition<P0>( &self, propertyid: UIA_PROPERTY_ID, value: P0, ) -> Result<IUIAutomationCondition>
where P0: Param<VARIANT>,

pub unsafe fn CreatePropertyConditionEx<P0>( &self, propertyid: UIA_PROPERTY_ID, value: P0, flags: PropertyConditionFlags, ) -> Result<IUIAutomationCondition>
where P0: Param<VARIANT>,

pub unsafe fn CreateAndCondition<P0, P1>( &self, condition1: P0, condition2: P1, ) -> Result<IUIAutomationCondition>
where P0: Param<IUIAutomationCondition>, P1: Param<IUIAutomationCondition>,

pub unsafe fn CreateAndConditionFromArray( &self, conditions: *const SAFEARRAY, ) -> Result<IUIAutomationCondition>

pub unsafe fn CreateAndConditionFromNativeArray( &self, conditions: &[Option<IUIAutomationCondition>], ) -> Result<IUIAutomationCondition>

pub unsafe fn CreateOrCondition<P0, P1>( &self, condition1: P0, condition2: P1, ) -> Result<IUIAutomationCondition>
where P0: Param<IUIAutomationCondition>, P1: Param<IUIAutomationCondition>,

pub unsafe fn CreateOrConditionFromArray( &self, conditions: *const SAFEARRAY, ) -> Result<IUIAutomationCondition>

pub unsafe fn CreateOrConditionFromNativeArray( &self, conditions: &[Option<IUIAutomationCondition>], ) -> Result<IUIAutomationCondition>

pub unsafe fn CreateNotCondition<P0>( &self, condition: P0, ) -> Result<IUIAutomationCondition>
where P0: Param<IUIAutomationCondition>,

pub unsafe fn AddAutomationEventHandler<P0, P1, P2>( &self, eventid: UIA_EVENT_ID, element: P0, scope: TreeScope, cacherequest: P1, handler: P2, ) -> Result<()>

pub unsafe fn RemoveAutomationEventHandler<P0, P1>( &self, eventid: UIA_EVENT_ID, element: P0, handler: P1, ) -> Result<()>
where P0: Param<IUIAutomationElement>, P1: Param<IUIAutomationEventHandler>,

pub unsafe fn AddPropertyChangedEventHandlerNativeArray<P0, P1, P2>( &self, element: P0, scope: TreeScope, cacherequest: P1, handler: P2, propertyarray: &[UIA_PROPERTY_ID], ) -> Result<()>

pub unsafe fn AddPropertyChangedEventHandler<P0, P1, P2>( &self, element: P0, scope: TreeScope, cacherequest: P1, handler: P2, propertyarray: *const SAFEARRAY, ) -> Result<()>

pub unsafe fn RemovePropertyChangedEventHandler<P0, P1>( &self, element: P0, handler: P1, ) -> Result<()>

pub unsafe fn AddStructureChangedEventHandler<P0, P1, P2>( &self, element: P0, scope: TreeScope, cacherequest: P1, handler: P2, ) -> Result<()>

pub unsafe fn RemoveStructureChangedEventHandler<P0, P1>( &self, element: P0, handler: P1, ) -> Result<()>

pub unsafe fn AddFocusChangedEventHandler<P0, P1>( &self, cacherequest: P0, handler: P1, ) -> Result<()>

pub unsafe fn RemoveFocusChangedEventHandler<P0>( &self, handler: P0, ) -> Result<()>

pub unsafe fn RemoveAllEventHandlers(&self) -> Result<()>

pub unsafe fn IntNativeArrayToSafeArray( &self, array: &[i32], ) -> Result<*mut SAFEARRAY>

pub unsafe fn IntSafeArrayToNativeArray( &self, intarray: *const SAFEARRAY, array: *mut *mut i32, ) -> Result<i32>

pub unsafe fn RectToVariant(&self, rc: RECT) -> Result<VARIANT>

pub unsafe fn VariantToRect<P0>(&self, var: P0) -> Result<RECT>
where P0: Param<VARIANT>,

pub unsafe fn SafeArrayToRectNativeArray( &self, rects: *const SAFEARRAY, rectarray: *mut *mut RECT, ) -> Result<i32>

pub unsafe fn CreateProxyFactoryEntry<P0>( &self, factory: P0, ) -> Result<IUIAutomationProxyFactoryEntry>
where P0: Param<IUIAutomationProxyFactory>,

pub unsafe fn ProxyFactoryMapping( &self, ) -> Result<IUIAutomationProxyFactoryMapping>

pub unsafe fn GetPropertyProgrammaticName( &self, property: UIA_PROPERTY_ID, ) -> Result<BSTR>

pub unsafe fn GetPatternProgrammaticName( &self, pattern: UIA_PATTERN_ID, ) -> Result<BSTR>

pub unsafe fn PollForPotentialSupportedPatterns<P0>( &self, pelement: P0, patternids: *mut *mut SAFEARRAY, patternnames: *mut *mut SAFEARRAY, ) -> Result<()>
where P0: Param<IUIAutomationElement>,

pub unsafe fn PollForPotentialSupportedProperties<P0>( &self, pelement: P0, propertyids: *mut *mut SAFEARRAY, propertynames: *mut *mut SAFEARRAY, ) -> Result<()>
where P0: Param<IUIAutomationElement>,

pub unsafe fn CheckNotSupported<P0>(&self, value: P0) -> Result<BOOL>
where P0: Param<VARIANT>,

pub unsafe fn ReservedNotSupportedValue(&self) -> Result<IUnknown>

pub unsafe fn ReservedMixedAttributeValue(&self) -> Result<IUnknown>

pub unsafe fn ElementFromIAccessible<P0>( &self, accessible: P0, childid: i32, ) -> Result<IUIAutomationElement>
where P0: Param<IAccessible>,

pub unsafe fn ElementFromIAccessibleBuildCache<P0, P1>( &self, accessible: P0, childid: i32, cacherequest: P1, ) -> Result<IUIAutomationElement>
where P0: Param<IAccessible>, P1: Param<IUIAutomationCacheRequest>,

Trait Implementations§

§

impl CanInto<IUIAutomation> for IUIAutomation2

§

const QUERY: bool = false

§

impl CanInto<IUIAutomation2> for IUIAutomation3

§

const QUERY: bool = false

§

impl CanInto<IUIAutomation2> for IUIAutomation4

§

const QUERY: bool = false

§

impl CanInto<IUIAutomation2> for IUIAutomation5

§

const QUERY: bool = false

§

impl CanInto<IUIAutomation2> for IUIAutomation6

§

const QUERY: bool = false

§

impl CanInto<IUnknown> for IUIAutomation2

§

const QUERY: bool = false

§

impl Clone for IUIAutomation2

§

fn clone(&self) -> IUIAutomation2

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
§

impl Debug for IUIAutomation2

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Deref for IUIAutomation2

§

type Target = IUIAutomation

The resulting type after dereferencing.
§

fn deref(&self) -> &Self::Target

Dereferences the value.
§

impl From<&IUIAutomation2> for &IUIAutomation

§

fn from(value: &IUIAutomation2) -> Self

Converts to this type from the input type.
§

impl From<&IUIAutomation2> for &IUnknown

§

fn from(value: &IUIAutomation2) -> Self

Converts to this type from the input type.
§

impl From<&IUIAutomation3> for &IUIAutomation2

§

fn from(value: &IUIAutomation3) -> Self

Converts to this type from the input type.
§

impl From<&IUIAutomation4> for &IUIAutomation2

§

fn from(value: &IUIAutomation4) -> Self

Converts to this type from the input type.
§

impl From<&IUIAutomation5> for &IUIAutomation2

§

fn from(value: &IUIAutomation5) -> Self

Converts to this type from the input type.
§

impl From<&IUIAutomation6> for &IUIAutomation2

§

fn from(value: &IUIAutomation6) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomation2> for IUIAutomation

§

fn from(value: IUIAutomation2) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomation2> for IUnknown

§

fn from(value: IUIAutomation2) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomation3> for IUIAutomation2

§

fn from(value: IUIAutomation3) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomation4> for IUIAutomation2

§

fn from(value: IUIAutomation4) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomation5> for IUIAutomation2

§

fn from(value: IUIAutomation5) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomation6> for IUIAutomation2

§

fn from(value: IUIAutomation6) -> Self

Converts to this type from the input type.
§

impl Interface for IUIAutomation2

§

const IID: GUID = _

The GUID associated with the interface.
§

fn as_raw(&self) -> *mut c_void

Returns the raw COM interface pointer. The resulting pointer continues to be owned by the Interface implementation.
§

fn into_raw(self) -> *mut c_void

Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§

unsafe fn from_raw(raw: *mut c_void) -> Self

Creates an Interface by taking ownership of the raw COM interface pointer. Read more
§

unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>

Creates an Interface that is valid so long as the raw COM interface pointer is valid. Read more
§

fn cast<T>(&self) -> Result<T, Error>
where T: Interface,

Attempts to cast the current interface to another interface using QueryInterface. Read more
§

fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. Read more
§

fn is_object<T>(&self) -> bool
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

Returns true if the given COM interface refers to an implementation of T. Read more
§

fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. It returns a reference to the “outer” object, e.g. &MyApp_Impl, not the inner &MyApp object. Read more
§

fn cast_object<T>(&self) -> Result<ComObject<T>, Error>
where T: ComObjectInner, <T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,

This casts the given COM interface to [&dyn Any]. It returns a reference to the “outer” object, e.g. MyApp_Impl, not the inner MyApp object. Read more
§

fn downgrade(&self) -> Result<Weak<Self>, Error>

Attempts to create a [Weak] reference to this object.
§

unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT

Call QueryInterface on this interface Read more
§

fn to_ref(&self) -> InterfaceRef<'_, Self>

Creates an InterfaceRef for this reference. The InterfaceRef tracks lifetimes statically, and eliminates the need for dynamic reference count adjustments (AddRef/Release).
§

impl PartialEq for IUIAutomation2

§

fn eq(&self, other: &IUIAutomation2) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for IUIAutomation2

§

impl StructuralPartialEq for IUIAutomation2

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> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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.