Struct windows::Win32::UI::Accessibility::IUIAutomation4
pub struct IUIAutomation4(/* private fields */);
Implementations§
§impl IUIAutomation4
impl IUIAutomation4
pub unsafe fn AddChangesEventHandler<P0, P1, P2>(
&self,
element: P0,
scope: TreeScope,
changetypes: &[i32],
pcacherequest: P1,
handler: P2,
) -> Result<()>where
P0: Param<IUIAutomationElement>,
P1: Param<IUIAutomationCacheRequest>,
P2: Param<IUIAutomationChangesEventHandler>,
pub unsafe fn RemoveChangesEventHandler<P0, P1>(
&self,
element: P0,
handler: P1,
) -> Result<()>where
P0: Param<IUIAutomationElement>,
P1: Param<IUIAutomationChangesEventHandler>,
Methods from Deref<Target = IUIAutomation3>§
pub unsafe fn AddTextEditTextChangedEventHandler<P0, P1, P2>(
&self,
element: P0,
scope: TreeScope,
texteditchangetype: TextEditChangeType,
cacherequest: P1,
handler: P2,
) -> Result<()>where
P0: Param<IUIAutomationElement>,
P1: Param<IUIAutomationCacheRequest>,
P2: Param<IUIAutomationTextEditTextChangedEventHandler>,
pub unsafe fn RemoveTextEditTextChangedEventHandler<P0, P1>(
&self,
element: P0,
handler: P1,
) -> Result<()>where
P0: Param<IUIAutomationElement>,
P1: Param<IUIAutomationTextEditTextChangedEventHandler>,
Methods from Deref<Target = 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<()>where
P0: Param<IUIAutomationElement>,
P1: Param<IUIAutomationCacheRequest>,
P2: Param<IUIAutomationEventHandler>,
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<()>where
P0: Param<IUIAutomationElement>,
P1: Param<IUIAutomationCacheRequest>,
P2: Param<IUIAutomationPropertyChangedEventHandler>,
pub unsafe fn AddPropertyChangedEventHandler<P0, P1, P2>(
&self,
element: P0,
scope: TreeScope,
cacherequest: P1,
handler: P2,
propertyarray: *const SAFEARRAY,
) -> Result<()>where
P0: Param<IUIAutomationElement>,
P1: Param<IUIAutomationCacheRequest>,
P2: Param<IUIAutomationPropertyChangedEventHandler>,
pub unsafe fn RemovePropertyChangedEventHandler<P0, P1>(
&self,
element: P0,
handler: P1,
) -> Result<()>where
P0: Param<IUIAutomationElement>,
P1: Param<IUIAutomationPropertyChangedEventHandler>,
pub unsafe fn AddStructureChangedEventHandler<P0, P1, P2>(
&self,
element: P0,
scope: TreeScope,
cacherequest: P1,
handler: P2,
) -> Result<()>where
P0: Param<IUIAutomationElement>,
P1: Param<IUIAutomationCacheRequest>,
P2: Param<IUIAutomationStructureChangedEventHandler>,
pub unsafe fn RemoveStructureChangedEventHandler<P0, P1>(
&self,
element: P0,
handler: P1,
) -> Result<()>where
P0: Param<IUIAutomationElement>,
P1: Param<IUIAutomationStructureChangedEventHandler>,
pub unsafe fn AddFocusChangedEventHandler<P0, P1>(
&self,
cacherequest: P0,
handler: P1,
) -> Result<()>where
P0: Param<IUIAutomationCacheRequest>,
P1: Param<IUIAutomationFocusChangedEventHandler>,
pub unsafe fn RemoveFocusChangedEventHandler<P0>(
&self,
handler: P0,
) -> Result<()>where
P0: Param<IUIAutomationFocusChangedEventHandler>,
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 IUIAutomation4
impl CanInto<IUIAutomation> for IUIAutomation4
§impl CanInto<IUIAutomation2> for IUIAutomation4
impl CanInto<IUIAutomation2> for IUIAutomation4
§impl CanInto<IUIAutomation3> for IUIAutomation4
impl CanInto<IUIAutomation3> for IUIAutomation4
§impl CanInto<IUIAutomation4> for IUIAutomation5
impl CanInto<IUIAutomation4> for IUIAutomation5
§impl CanInto<IUIAutomation4> for IUIAutomation6
impl CanInto<IUIAutomation4> for IUIAutomation6
§impl CanInto<IUnknown> for IUIAutomation4
impl CanInto<IUnknown> for IUIAutomation4
§impl Clone for IUIAutomation4
impl Clone for IUIAutomation4
§fn clone(&self) -> IUIAutomation4
fn clone(&self) -> IUIAutomation4
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 more§impl Debug for IUIAutomation4
impl Debug for IUIAutomation4
§impl Deref for IUIAutomation4
impl Deref for IUIAutomation4
§impl From<&IUIAutomation4> for &IUIAutomation
impl From<&IUIAutomation4> for &IUIAutomation
§fn from(value: &IUIAutomation4) -> Self
fn from(value: &IUIAutomation4) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomation4> for &IUIAutomation2
impl From<&IUIAutomation4> for &IUIAutomation2
§fn from(value: &IUIAutomation4) -> Self
fn from(value: &IUIAutomation4) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomation4> for &IUIAutomation3
impl From<&IUIAutomation4> for &IUIAutomation3
§fn from(value: &IUIAutomation4) -> Self
fn from(value: &IUIAutomation4) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomation4> for &IUnknown
impl From<&IUIAutomation4> for &IUnknown
§fn from(value: &IUIAutomation4) -> Self
fn from(value: &IUIAutomation4) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomation5> for &IUIAutomation4
impl From<&IUIAutomation5> for &IUIAutomation4
§fn from(value: &IUIAutomation5) -> Self
fn from(value: &IUIAutomation5) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomation6> for &IUIAutomation4
impl From<&IUIAutomation6> for &IUIAutomation4
§fn from(value: &IUIAutomation6) -> Self
fn from(value: &IUIAutomation6) -> Self
Converts to this type from the input type.
§impl From<IUIAutomation4> for IUIAutomation
impl From<IUIAutomation4> for IUIAutomation
§fn from(value: IUIAutomation4) -> Self
fn from(value: IUIAutomation4) -> Self
Converts to this type from the input type.
§impl From<IUIAutomation4> for IUIAutomation2
impl From<IUIAutomation4> for IUIAutomation2
§fn from(value: IUIAutomation4) -> Self
fn from(value: IUIAutomation4) -> Self
Converts to this type from the input type.
§impl From<IUIAutomation4> for IUIAutomation3
impl From<IUIAutomation4> for IUIAutomation3
§fn from(value: IUIAutomation4) -> Self
fn from(value: IUIAutomation4) -> Self
Converts to this type from the input type.
§impl From<IUIAutomation4> for IUnknown
impl From<IUIAutomation4> for IUnknown
§fn from(value: IUIAutomation4) -> Self
fn from(value: IUIAutomation4) -> Self
Converts to this type from the input type.
§impl From<IUIAutomation5> for IUIAutomation4
impl From<IUIAutomation5> for IUIAutomation4
§fn from(value: IUIAutomation5) -> Self
fn from(value: IUIAutomation5) -> Self
Converts to this type from the input type.
§impl From<IUIAutomation6> for IUIAutomation4
impl From<IUIAutomation6> for IUIAutomation4
§fn from(value: IUIAutomation6) -> Self
fn from(value: IUIAutomation6) -> Self
Converts to this type from the input type.
§impl Interface for IUIAutomation4
impl Interface for IUIAutomation4
§fn as_raw(&self) -> *mut c_void
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
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.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
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>,
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) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
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>,
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>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IUIAutomation4
impl PartialEq for IUIAutomation4
§fn eq(&self, other: &IUIAutomation4) -> bool
fn eq(&self, other: &IUIAutomation4) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IUIAutomation4
impl StructuralPartialEq for IUIAutomation4
Auto Trait Implementations§
impl Freeze for IUIAutomation4
impl RefUnwindSafe for IUIAutomation4
impl !Send for IUIAutomation4
impl !Sync for IUIAutomation4
impl Unpin for IUIAutomation4
impl UnwindSafe for IUIAutomation4
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)