Struct IUIAutomation
pub struct IUIAutomation(/* private fields */);
Implementations§
§impl IUIAutomation
impl 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( &self, hwnd: HWND, ) -> Result<IUIAutomationElement>
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<P1>(
&self,
hwnd: HWND,
cacherequest: P1,
) -> Result<IUIAutomationElement>where
P1: Param<IUIAutomationCacheRequest>,
pub unsafe fn ElementFromPointBuildCache<P1>(
&self,
pt: POINT,
cacherequest: P1,
) -> Result<IUIAutomationElement>where
P1: 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( &self, propertyid: UIA_PROPERTY_ID, value: &VARIANT, ) -> Result<IUIAutomationCondition>
pub unsafe fn CreatePropertyConditionEx( &self, propertyid: UIA_PROPERTY_ID, value: &VARIANT, flags: PropertyConditionFlags, ) -> Result<IUIAutomationCondition>
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<P1, P3, P4>(
&self,
eventid: UIA_EVENT_ID,
element: P1,
scope: TreeScope,
cacherequest: P3,
handler: P4,
) -> Result<()>where
P1: Param<IUIAutomationElement>,
P3: Param<IUIAutomationCacheRequest>,
P4: Param<IUIAutomationEventHandler>,
pub unsafe fn RemoveAutomationEventHandler<P1, P2>(
&self,
eventid: UIA_EVENT_ID,
element: P1,
handler: P2,
) -> Result<()>where
P1: Param<IUIAutomationElement>,
P2: Param<IUIAutomationEventHandler>,
pub unsafe fn AddPropertyChangedEventHandlerNativeArray<P0, P2, P3>(
&self,
element: P0,
scope: TreeScope,
cacherequest: P2,
handler: P3,
propertyarray: &[UIA_PROPERTY_ID],
) -> Result<()>where
P0: Param<IUIAutomationElement>,
P2: Param<IUIAutomationCacheRequest>,
P3: Param<IUIAutomationPropertyChangedEventHandler>,
pub unsafe fn AddPropertyChangedEventHandler<P0, P2, P3>(
&self,
element: P0,
scope: TreeScope,
cacherequest: P2,
handler: P3,
propertyarray: *const SAFEARRAY,
) -> Result<()>where
P0: Param<IUIAutomationElement>,
P2: Param<IUIAutomationCacheRequest>,
P3: 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, P2, P3>(
&self,
element: P0,
scope: TreeScope,
cacherequest: P2,
handler: P3,
) -> Result<()>where
P0: Param<IUIAutomationElement>,
P2: Param<IUIAutomationCacheRequest>,
P3: 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(&self, var: &VARIANT) -> Result<RECT>
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(&self, value: &VARIANT) -> Result<BOOL>
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, P2>(
&self,
accessible: P0,
childid: i32,
cacherequest: P2,
) -> Result<IUIAutomationElement>where
P0: Param<IAccessible>,
P2: Param<IUIAutomationCacheRequest>,
Trait Implementations§
§impl CanInto<IUIAutomation> for IUIAutomation2
impl CanInto<IUIAutomation> for IUIAutomation2
§impl CanInto<IUIAutomation> for IUIAutomation3
impl CanInto<IUIAutomation> for IUIAutomation3
§impl CanInto<IUIAutomation> for IUIAutomation4
impl CanInto<IUIAutomation> for IUIAutomation4
§impl CanInto<IUIAutomation> for IUIAutomation5
impl CanInto<IUIAutomation> for IUIAutomation5
§impl CanInto<IUIAutomation> for IUIAutomation6
impl CanInto<IUIAutomation> for IUIAutomation6
§impl CanInto<IUnknown> for IUIAutomation
impl CanInto<IUnknown> for IUIAutomation
§impl Clone for IUIAutomation
impl Clone for IUIAutomation
§fn clone(&self) -> IUIAutomation
fn clone(&self) -> IUIAutomation
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 IUIAutomation
impl Debug for IUIAutomation
§impl From<&IUIAutomation> for &IUnknown
impl From<&IUIAutomation> for &IUnknown
§fn from(value: &IUIAutomation) -> Self
fn from(value: &IUIAutomation) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomation2> for &IUIAutomation
impl From<&IUIAutomation2> for &IUIAutomation
§fn from(value: &IUIAutomation2) -> Self
fn from(value: &IUIAutomation2) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomation3> for &IUIAutomation
impl From<&IUIAutomation3> for &IUIAutomation
§fn from(value: &IUIAutomation3) -> Self
fn from(value: &IUIAutomation3) -> 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<&IUIAutomation5> for &IUIAutomation
impl From<&IUIAutomation5> for &IUIAutomation
§fn from(value: &IUIAutomation5) -> Self
fn from(value: &IUIAutomation5) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomation6> for &IUIAutomation
impl From<&IUIAutomation6> for &IUIAutomation
§fn from(value: &IUIAutomation6) -> Self
fn from(value: &IUIAutomation6) -> Self
Converts to this type from the input type.
§impl From<IUIAutomation> for IUnknown
impl From<IUIAutomation> for IUnknown
§fn from(value: IUIAutomation) -> Self
fn from(value: IUIAutomation) -> Self
Converts to this type from the input type.
§impl From<IUIAutomation2> for IUIAutomation
impl From<IUIAutomation2> for IUIAutomation
§fn from(value: IUIAutomation2) -> Self
fn from(value: IUIAutomation2) -> Self
Converts to this type from the input type.
§impl From<IUIAutomation3> for IUIAutomation
impl From<IUIAutomation3> for IUIAutomation
§fn from(value: IUIAutomation3) -> Self
fn from(value: IUIAutomation3) -> 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<IUIAutomation5> for IUIAutomation
impl From<IUIAutomation5> for IUIAutomation
§fn from(value: IUIAutomation5) -> Self
fn from(value: IUIAutomation5) -> Self
Converts to this type from the input type.
§impl From<IUIAutomation6> for IUIAutomation
impl From<IUIAutomation6> for IUIAutomation
§fn from(value: IUIAutomation6) -> Self
fn from(value: IUIAutomation6) -> Self
Converts to this type from the input type.
§impl Interface for IUIAutomation
impl Interface for IUIAutomation
§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.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§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 IUIAutomation
impl PartialEq for IUIAutomation
impl Eq for IUIAutomation
impl StructuralPartialEq for IUIAutomation
Auto Trait Implementations§
impl Freeze for IUIAutomation
impl RefUnwindSafe for IUIAutomation
impl !Send for IUIAutomation
impl !Sync for IUIAutomation
impl Unpin for IUIAutomation
impl UnwindSafe for IUIAutomation
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