Struct windows::Win32::UI::Accessibility::IUIAutomationElement
pub struct IUIAutomationElement(/* private fields */);
Implementations§
§impl IUIAutomationElement
impl IUIAutomationElement
pub unsafe fn SetFocus(&self) -> Result<()>
pub unsafe fn GetRuntimeId(&self) -> Result<*mut SAFEARRAY>
pub unsafe fn FindFirst<P0>(
&self,
scope: TreeScope,
condition: P0,
) -> Result<IUIAutomationElement>where
P0: Param<IUIAutomationCondition>,
pub unsafe fn FindAll<P0>(
&self,
scope: TreeScope,
condition: P0,
) -> Result<IUIAutomationElementArray>where
P0: Param<IUIAutomationCondition>,
pub unsafe fn FindFirstBuildCache<P0, P1>(
&self,
scope: TreeScope,
condition: P0,
cacherequest: P1,
) -> Result<IUIAutomationElement>where
P0: Param<IUIAutomationCondition>,
P1: Param<IUIAutomationCacheRequest>,
pub unsafe fn FindAllBuildCache<P0, P1>(
&self,
scope: TreeScope,
condition: P0,
cacherequest: P1,
) -> Result<IUIAutomationElementArray>where
P0: Param<IUIAutomationCondition>,
P1: Param<IUIAutomationCacheRequest>,
pub unsafe fn BuildUpdatedCache<P0>(
&self,
cacherequest: P0,
) -> Result<IUIAutomationElement>where
P0: Param<IUIAutomationCacheRequest>,
pub unsafe fn GetCurrentPropertyValue( &self, propertyid: UIA_PROPERTY_ID, ) -> Result<VARIANT>
pub unsafe fn GetCurrentPropertyValueEx<P0>(
&self,
propertyid: UIA_PROPERTY_ID,
ignoredefaultvalue: P0,
) -> Result<VARIANT>where
P0: Param<BOOL>,
pub unsafe fn GetCachedPropertyValue( &self, propertyid: UIA_PROPERTY_ID, ) -> Result<VARIANT>
pub unsafe fn GetCachedPropertyValueEx<P0>(
&self,
propertyid: UIA_PROPERTY_ID,
ignoredefaultvalue: P0,
) -> Result<VARIANT>where
P0: Param<BOOL>,
pub unsafe fn GetCurrentPatternAs<T>(
&self,
patternid: UIA_PATTERN_ID,
) -> Result<T>where
T: Interface,
pub unsafe fn GetCachedPatternAs<T>(
&self,
patternid: UIA_PATTERN_ID,
) -> Result<T>where
T: Interface,
pub unsafe fn GetCurrentPattern( &self, patternid: UIA_PATTERN_ID, ) -> Result<IUnknown>
pub unsafe fn GetCachedPattern( &self, patternid: UIA_PATTERN_ID, ) -> Result<IUnknown>
pub unsafe fn GetCachedParent(&self) -> Result<IUIAutomationElement>
pub unsafe fn GetCachedChildren(&self) -> Result<IUIAutomationElementArray>
pub unsafe fn CurrentProcessId(&self) -> Result<i32>
pub unsafe fn CurrentControlType(&self) -> Result<UIA_CONTROLTYPE_ID>
pub unsafe fn CurrentLocalizedControlType(&self) -> Result<BSTR>
pub unsafe fn CurrentName(&self) -> Result<BSTR>
pub unsafe fn CurrentAcceleratorKey(&self) -> Result<BSTR>
pub unsafe fn CurrentAccessKey(&self) -> Result<BSTR>
pub unsafe fn CurrentHasKeyboardFocus(&self) -> Result<BOOL>
pub unsafe fn CurrentIsKeyboardFocusable(&self) -> Result<BOOL>
pub unsafe fn CurrentIsEnabled(&self) -> Result<BOOL>
pub unsafe fn CurrentAutomationId(&self) -> Result<BSTR>
pub unsafe fn CurrentClassName(&self) -> Result<BSTR>
pub unsafe fn CurrentHelpText(&self) -> Result<BSTR>
pub unsafe fn CurrentCulture(&self) -> Result<i32>
pub unsafe fn CurrentIsControlElement(&self) -> Result<BOOL>
pub unsafe fn CurrentIsContentElement(&self) -> Result<BOOL>
pub unsafe fn CurrentIsPassword(&self) -> Result<BOOL>
pub unsafe fn CurrentNativeWindowHandle(&self) -> Result<HWND>
pub unsafe fn CurrentItemType(&self) -> Result<BSTR>
pub unsafe fn CurrentIsOffscreen(&self) -> Result<BOOL>
pub unsafe fn CurrentOrientation(&self) -> Result<OrientationType>
pub unsafe fn CurrentFrameworkId(&self) -> Result<BSTR>
pub unsafe fn CurrentIsRequiredForForm(&self) -> Result<BOOL>
pub unsafe fn CurrentItemStatus(&self) -> Result<BSTR>
pub unsafe fn CurrentBoundingRectangle(&self) -> Result<RECT>
pub unsafe fn CurrentLabeledBy(&self) -> Result<IUIAutomationElement>
pub unsafe fn CurrentAriaRole(&self) -> Result<BSTR>
pub unsafe fn CurrentAriaProperties(&self) -> Result<BSTR>
pub unsafe fn CurrentIsDataValidForForm(&self) -> Result<BOOL>
pub unsafe fn CurrentControllerFor(&self) -> Result<IUIAutomationElementArray>
pub unsafe fn CurrentDescribedBy(&self) -> Result<IUIAutomationElementArray>
pub unsafe fn CurrentFlowsTo(&self) -> Result<IUIAutomationElementArray>
pub unsafe fn CurrentProviderDescription(&self) -> Result<BSTR>
pub unsafe fn CachedProcessId(&self) -> Result<i32>
pub unsafe fn CachedControlType(&self) -> Result<UIA_CONTROLTYPE_ID>
pub unsafe fn CachedLocalizedControlType(&self) -> Result<BSTR>
pub unsafe fn CachedName(&self) -> Result<BSTR>
pub unsafe fn CachedAcceleratorKey(&self) -> Result<BSTR>
pub unsafe fn CachedAccessKey(&self) -> Result<BSTR>
pub unsafe fn CachedHasKeyboardFocus(&self) -> Result<BOOL>
pub unsafe fn CachedIsKeyboardFocusable(&self) -> Result<BOOL>
pub unsafe fn CachedIsEnabled(&self) -> Result<BOOL>
pub unsafe fn CachedAutomationId(&self) -> Result<BSTR>
pub unsafe fn CachedClassName(&self) -> Result<BSTR>
pub unsafe fn CachedHelpText(&self) -> Result<BSTR>
pub unsafe fn CachedCulture(&self) -> Result<i32>
pub unsafe fn CachedIsControlElement(&self) -> Result<BOOL>
pub unsafe fn CachedIsContentElement(&self) -> Result<BOOL>
pub unsafe fn CachedIsPassword(&self) -> Result<BOOL>
pub unsafe fn CachedNativeWindowHandle(&self) -> Result<HWND>
pub unsafe fn CachedItemType(&self) -> Result<BSTR>
pub unsafe fn CachedIsOffscreen(&self) -> Result<BOOL>
pub unsafe fn CachedOrientation(&self) -> Result<OrientationType>
pub unsafe fn CachedFrameworkId(&self) -> Result<BSTR>
pub unsafe fn CachedIsRequiredForForm(&self) -> Result<BOOL>
pub unsafe fn CachedItemStatus(&self) -> Result<BSTR>
pub unsafe fn CachedBoundingRectangle(&self) -> Result<RECT>
pub unsafe fn CachedLabeledBy(&self) -> Result<IUIAutomationElement>
pub unsafe fn CachedAriaRole(&self) -> Result<BSTR>
pub unsafe fn CachedAriaProperties(&self) -> Result<BSTR>
pub unsafe fn CachedIsDataValidForForm(&self) -> Result<BOOL>
pub unsafe fn CachedControllerFor(&self) -> Result<IUIAutomationElementArray>
pub unsafe fn CachedDescribedBy(&self) -> Result<IUIAutomationElementArray>
pub unsafe fn CachedFlowsTo(&self) -> Result<IUIAutomationElementArray>
pub unsafe fn CachedProviderDescription(&self) -> Result<BSTR>
pub unsafe fn GetClickablePoint(&self, clickable: *mut POINT) -> Result<BOOL>
Trait Implementations§
§impl CanInto<IUIAutomationElement> for IUIAutomationElement2
impl CanInto<IUIAutomationElement> for IUIAutomationElement2
§impl CanInto<IUIAutomationElement> for IUIAutomationElement3
impl CanInto<IUIAutomationElement> for IUIAutomationElement3
§impl CanInto<IUIAutomationElement> for IUIAutomationElement4
impl CanInto<IUIAutomationElement> for IUIAutomationElement4
§impl CanInto<IUIAutomationElement> for IUIAutomationElement5
impl CanInto<IUIAutomationElement> for IUIAutomationElement5
§impl CanInto<IUIAutomationElement> for IUIAutomationElement6
impl CanInto<IUIAutomationElement> for IUIAutomationElement6
§impl CanInto<IUIAutomationElement> for IUIAutomationElement7
impl CanInto<IUIAutomationElement> for IUIAutomationElement7
§impl CanInto<IUIAutomationElement> for IUIAutomationElement8
impl CanInto<IUIAutomationElement> for IUIAutomationElement8
§impl CanInto<IUIAutomationElement> for IUIAutomationElement9
impl CanInto<IUIAutomationElement> for IUIAutomationElement9
§impl CanInto<IUnknown> for IUIAutomationElement
impl CanInto<IUnknown> for IUIAutomationElement
§impl Clone for IUIAutomationElement
impl Clone for IUIAutomationElement
§fn clone(&self) -> IUIAutomationElement
fn clone(&self) -> IUIAutomationElement
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 IUIAutomationElement
impl Debug for IUIAutomationElement
§impl Deref for IUIAutomationElement
impl Deref for IUIAutomationElement
§impl From<&IUIAutomationElement> for &IUnknown
impl From<&IUIAutomationElement> for &IUnknown
§fn from(value: &IUIAutomationElement) -> Self
fn from(value: &IUIAutomationElement) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomationElement2> for &IUIAutomationElement
impl From<&IUIAutomationElement2> for &IUIAutomationElement
§fn from(value: &IUIAutomationElement2) -> Self
fn from(value: &IUIAutomationElement2) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomationElement3> for &IUIAutomationElement
impl From<&IUIAutomationElement3> for &IUIAutomationElement
§fn from(value: &IUIAutomationElement3) -> Self
fn from(value: &IUIAutomationElement3) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomationElement4> for &IUIAutomationElement
impl From<&IUIAutomationElement4> for &IUIAutomationElement
§fn from(value: &IUIAutomationElement4) -> Self
fn from(value: &IUIAutomationElement4) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomationElement5> for &IUIAutomationElement
impl From<&IUIAutomationElement5> for &IUIAutomationElement
§fn from(value: &IUIAutomationElement5) -> Self
fn from(value: &IUIAutomationElement5) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomationElement6> for &IUIAutomationElement
impl From<&IUIAutomationElement6> for &IUIAutomationElement
§fn from(value: &IUIAutomationElement6) -> Self
fn from(value: &IUIAutomationElement6) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomationElement7> for &IUIAutomationElement
impl From<&IUIAutomationElement7> for &IUIAutomationElement
§fn from(value: &IUIAutomationElement7) -> Self
fn from(value: &IUIAutomationElement7) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomationElement8> for &IUIAutomationElement
impl From<&IUIAutomationElement8> for &IUIAutomationElement
§fn from(value: &IUIAutomationElement8) -> Self
fn from(value: &IUIAutomationElement8) -> Self
Converts to this type from the input type.
§impl From<&IUIAutomationElement9> for &IUIAutomationElement
impl From<&IUIAutomationElement9> for &IUIAutomationElement
§fn from(value: &IUIAutomationElement9) -> Self
fn from(value: &IUIAutomationElement9) -> Self
Converts to this type from the input type.
§impl From<IUIAutomationElement> for IUnknown
impl From<IUIAutomationElement> for IUnknown
§fn from(value: IUIAutomationElement) -> Self
fn from(value: IUIAutomationElement) -> Self
Converts to this type from the input type.
§impl From<IUIAutomationElement2> for IUIAutomationElement
impl From<IUIAutomationElement2> for IUIAutomationElement
§fn from(value: IUIAutomationElement2) -> Self
fn from(value: IUIAutomationElement2) -> Self
Converts to this type from the input type.
§impl From<IUIAutomationElement3> for IUIAutomationElement
impl From<IUIAutomationElement3> for IUIAutomationElement
§fn from(value: IUIAutomationElement3) -> Self
fn from(value: IUIAutomationElement3) -> Self
Converts to this type from the input type.
§impl From<IUIAutomationElement4> for IUIAutomationElement
impl From<IUIAutomationElement4> for IUIAutomationElement
§fn from(value: IUIAutomationElement4) -> Self
fn from(value: IUIAutomationElement4) -> Self
Converts to this type from the input type.
§impl From<IUIAutomationElement5> for IUIAutomationElement
impl From<IUIAutomationElement5> for IUIAutomationElement
§fn from(value: IUIAutomationElement5) -> Self
fn from(value: IUIAutomationElement5) -> Self
Converts to this type from the input type.
§impl From<IUIAutomationElement6> for IUIAutomationElement
impl From<IUIAutomationElement6> for IUIAutomationElement
§fn from(value: IUIAutomationElement6) -> Self
fn from(value: IUIAutomationElement6) -> Self
Converts to this type from the input type.
§impl From<IUIAutomationElement7> for IUIAutomationElement
impl From<IUIAutomationElement7> for IUIAutomationElement
§fn from(value: IUIAutomationElement7) -> Self
fn from(value: IUIAutomationElement7) -> Self
Converts to this type from the input type.
§impl From<IUIAutomationElement8> for IUIAutomationElement
impl From<IUIAutomationElement8> for IUIAutomationElement
§fn from(value: IUIAutomationElement8) -> Self
fn from(value: IUIAutomationElement8) -> Self
Converts to this type from the input type.
§impl From<IUIAutomationElement9> for IUIAutomationElement
impl From<IUIAutomationElement9> for IUIAutomationElement
§fn from(value: IUIAutomationElement9) -> Self
fn from(value: IUIAutomationElement9) -> Self
Converts to this type from the input type.
§impl Interface for IUIAutomationElement
impl Interface for IUIAutomationElement
§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 IUIAutomationElement
impl PartialEq for IUIAutomationElement
§fn eq(&self, other: &IUIAutomationElement) -> bool
fn eq(&self, other: &IUIAutomationElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IUIAutomationElement
impl StructuralPartialEq for IUIAutomationElement
Auto Trait Implementations§
impl Freeze for IUIAutomationElement
impl RefUnwindSafe for IUIAutomationElement
impl !Send for IUIAutomationElement
impl !Sync for IUIAutomationElement
impl Unpin for IUIAutomationElement
impl UnwindSafe for IUIAutomationElement
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
)