Struct windows::Win32::UI::Accessibility::IUIAutomationElement5

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

Implementations§

§

impl IUIAutomationElement5

pub unsafe fn CurrentLandmarkType(&self) -> Result<UIA_LANDMARKTYPE_ID>

pub unsafe fn CurrentLocalizedLandmarkType(&self) -> Result<BSTR>

pub unsafe fn CachedLandmarkType(&self) -> Result<UIA_LANDMARKTYPE_ID>

pub unsafe fn CachedLocalizedLandmarkType(&self) -> Result<BSTR>

Methods from Deref<Target = IUIAutomationElement4>§

pub unsafe fn CurrentPositionInSet(&self) -> Result<i32>

pub unsafe fn CurrentSizeOfSet(&self) -> Result<i32>

pub unsafe fn CurrentLevel(&self) -> Result<i32>

pub unsafe fn CurrentAnnotationTypes(&self) -> Result<*mut SAFEARRAY>

pub unsafe fn CurrentAnnotationObjects( &self, ) -> Result<IUIAutomationElementArray>

pub unsafe fn CachedPositionInSet(&self) -> Result<i32>

pub unsafe fn CachedSizeOfSet(&self) -> Result<i32>

pub unsafe fn CachedLevel(&self) -> Result<i32>

pub unsafe fn CachedAnnotationTypes(&self) -> Result<*mut SAFEARRAY>

pub unsafe fn CachedAnnotationObjects( &self, ) -> Result<IUIAutomationElementArray>

Methods from Deref<Target = IUIAutomationElement3>§

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

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

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

Methods from Deref<Target = IUIAutomationElement2>§

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

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

pub unsafe fn CurrentLiveSetting(&self) -> Result<LiveSetting>

pub unsafe fn CachedLiveSetting(&self) -> Result<LiveSetting>

pub unsafe fn CurrentFlowsFrom(&self) -> Result<IUIAutomationElementArray>

pub unsafe fn CachedFlowsFrom(&self) -> Result<IUIAutomationElementArray>

Methods from Deref<Target = 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>

pub unsafe fn FindAllBuildCache<P0, P1>( &self, scope: TreeScope, condition: P0, cacherequest: P1, ) -> Result<IUIAutomationElementArray>

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 IUIAutomationElement5

§

const QUERY: bool = false

§

impl CanInto<IUIAutomationElement2> for IUIAutomationElement5

§

const QUERY: bool = false

§

impl CanInto<IUIAutomationElement3> for IUIAutomationElement5

§

const QUERY: bool = false

§

impl CanInto<IUIAutomationElement4> for IUIAutomationElement5

§

const QUERY: bool = false

§

impl CanInto<IUIAutomationElement5> for IUIAutomationElement6

§

const QUERY: bool = false

§

impl CanInto<IUIAutomationElement5> for IUIAutomationElement7

§

const QUERY: bool = false

§

impl CanInto<IUIAutomationElement5> for IUIAutomationElement8

§

const QUERY: bool = false

§

impl CanInto<IUIAutomationElement5> for IUIAutomationElement9

§

const QUERY: bool = false

§

impl CanInto<IUnknown> for IUIAutomationElement5

§

const QUERY: bool = false

§

impl Clone for IUIAutomationElement5

§

fn clone(&self) -> IUIAutomationElement5

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 IUIAutomationElement5

§

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

Formats the value using the given formatter. Read more
§

impl Deref for IUIAutomationElement5

§

type Target = IUIAutomationElement4

The resulting type after dereferencing.
§

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

Dereferences the value.
§

impl From<&IUIAutomationElement5> for &IUIAutomationElement

§

fn from(value: &IUIAutomationElement5) -> Self

Converts to this type from the input type.
§

impl From<&IUIAutomationElement5> for &IUIAutomationElement2

§

fn from(value: &IUIAutomationElement5) -> Self

Converts to this type from the input type.
§

impl From<&IUIAutomationElement5> for &IUIAutomationElement3

§

fn from(value: &IUIAutomationElement5) -> Self

Converts to this type from the input type.
§

impl From<&IUIAutomationElement5> for &IUIAutomationElement4

§

fn from(value: &IUIAutomationElement5) -> Self

Converts to this type from the input type.
§

impl From<&IUIAutomationElement5> for &IUnknown

§

fn from(value: &IUIAutomationElement5) -> Self

Converts to this type from the input type.
§

impl From<&IUIAutomationElement6> for &IUIAutomationElement5

§

fn from(value: &IUIAutomationElement6) -> Self

Converts to this type from the input type.
§

impl From<&IUIAutomationElement7> for &IUIAutomationElement5

§

fn from(value: &IUIAutomationElement7) -> Self

Converts to this type from the input type.
§

impl From<&IUIAutomationElement8> for &IUIAutomationElement5

§

fn from(value: &IUIAutomationElement8) -> Self

Converts to this type from the input type.
§

impl From<&IUIAutomationElement9> for &IUIAutomationElement5

§

fn from(value: &IUIAutomationElement9) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomationElement5> for IUIAutomationElement

§

fn from(value: IUIAutomationElement5) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomationElement5> for IUIAutomationElement2

§

fn from(value: IUIAutomationElement5) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomationElement5> for IUIAutomationElement3

§

fn from(value: IUIAutomationElement5) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomationElement5> for IUIAutomationElement4

§

fn from(value: IUIAutomationElement5) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomationElement5> for IUnknown

§

fn from(value: IUIAutomationElement5) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomationElement6> for IUIAutomationElement5

§

fn from(value: IUIAutomationElement6) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomationElement7> for IUIAutomationElement5

§

fn from(value: IUIAutomationElement7) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomationElement8> for IUIAutomationElement5

§

fn from(value: IUIAutomationElement8) -> Self

Converts to this type from the input type.
§

impl From<IUIAutomationElement9> for IUIAutomationElement5

§

fn from(value: IUIAutomationElement9) -> Self

Converts to this type from the input type.
§

impl Interface for IUIAutomationElement5

§

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 IUIAutomationElement5

§

fn eq(&self, other: &IUIAutomationElement5) -> 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 IUIAutomationElement5

§

impl StructuralPartialEq for IUIAutomationElement5

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.