pub struct IUIAutomationTextRange2(/* private fields */);Implementations§
Source§impl IUIAutomationTextRange2
impl IUIAutomationTextRange2
pub unsafe fn Clone(&self) -> Result<IUIAutomationTextRange>
pub unsafe fn Compare<'a>( &self, range: impl IntoParam<'a, IUIAutomationTextRange>, ) -> Result<BOOL>
pub unsafe fn CompareEndpoints<'a>( &self, srcendpoint: TextPatternRangeEndpoint, range: impl IntoParam<'a, IUIAutomationTextRange>, targetendpoint: TextPatternRangeEndpoint, ) -> Result<i32>
pub unsafe fn ExpandToEnclosingUnit(&self, textunit: TextUnit) -> Result<()>
pub unsafe fn FindAttribute<'a>( &self, attr: i32, val: impl IntoParam<'a, VARIANT>, backward: impl IntoParam<'a, BOOL>, ) -> Result<IUIAutomationTextRange>
pub unsafe fn FindText<'a>( &self, text: impl IntoParam<'a, BSTR>, backward: impl IntoParam<'a, BOOL>, ignorecase: impl IntoParam<'a, BOOL>, ) -> Result<IUIAutomationTextRange>
pub unsafe fn GetAttributeValue(&self, attr: i32) -> Result<VARIANT>
pub unsafe fn GetBoundingRectangles(&self) -> Result<*mut SAFEARRAY>
pub unsafe fn GetEnclosingElement(&self) -> Result<IUIAutomationElement>
pub unsafe fn GetText(&self, maxlength: i32) -> Result<BSTR>
pub unsafe fn Move(&self, unit: TextUnit, count: i32) -> Result<i32>
pub unsafe fn MoveEndpointByUnit( &self, endpoint: TextPatternRangeEndpoint, unit: TextUnit, count: i32, ) -> Result<i32>
pub unsafe fn MoveEndpointByRange<'a>( &self, srcendpoint: TextPatternRangeEndpoint, range: impl IntoParam<'a, IUIAutomationTextRange>, targetendpoint: TextPatternRangeEndpoint, ) -> Result<()>
pub unsafe fn Select(&self) -> Result<()>
pub unsafe fn AddToSelection(&self) -> Result<()>
pub unsafe fn RemoveFromSelection(&self) -> Result<()>
pub unsafe fn ScrollIntoView<'a>( &self, aligntotop: impl IntoParam<'a, BOOL>, ) -> Result<()>
pub unsafe fn GetChildren(&self) -> Result<IUIAutomationElementArray>
pub unsafe fn ShowContextMenu(&self) -> Result<()>
Trait Implementations§
Source§impl Clone for IUIAutomationTextRange2
impl Clone for IUIAutomationTextRange2
Source§fn clone(&self) -> IUIAutomationTextRange2
fn clone(&self) -> IUIAutomationTextRange2
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 moreSource§impl Debug for IUIAutomationTextRange2
impl Debug for IUIAutomationTextRange2
Source§impl From<&IUIAutomationTextRange2> for IUIAutomationTextRange
impl From<&IUIAutomationTextRange2> for IUIAutomationTextRange
Source§fn from(value: &IUIAutomationTextRange2) -> Self
fn from(value: &IUIAutomationTextRange2) -> Self
Converts to this type from the input type.
Source§impl From<&IUIAutomationTextRange2> for IUnknown
impl From<&IUIAutomationTextRange2> for IUnknown
Source§fn from(value: &IUIAutomationTextRange2) -> Self
fn from(value: &IUIAutomationTextRange2) -> Self
Converts to this type from the input type.
Source§impl From<&IUIAutomationTextRange3> for IUIAutomationTextRange2
impl From<&IUIAutomationTextRange3> for IUIAutomationTextRange2
Source§fn from(value: &IUIAutomationTextRange3) -> Self
fn from(value: &IUIAutomationTextRange3) -> Self
Converts to this type from the input type.
Source§impl From<IUIAutomationTextRange2> for IUIAutomationTextRange
impl From<IUIAutomationTextRange2> for IUIAutomationTextRange
Source§fn from(value: IUIAutomationTextRange2) -> Self
fn from(value: IUIAutomationTextRange2) -> Self
Converts to this type from the input type.
Source§impl From<IUIAutomationTextRange2> for IUnknown
impl From<IUIAutomationTextRange2> for IUnknown
Source§fn from(value: IUIAutomationTextRange2) -> Self
fn from(value: IUIAutomationTextRange2) -> Self
Converts to this type from the input type.
Source§impl From<IUIAutomationTextRange3> for IUIAutomationTextRange2
impl From<IUIAutomationTextRange3> for IUIAutomationTextRange2
Source§fn from(value: IUIAutomationTextRange3) -> Self
fn from(value: IUIAutomationTextRange3) -> Self
Converts to this type from the input type.
Source§impl Interface for IUIAutomationTextRange2
impl Interface for IUIAutomationTextRange2
const IID: Guid
type Vtable = IUIAutomationTextRange2_abi
Source§unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
Safety Read more
Source§unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
Safety Read more
Source§impl PartialEq for IUIAutomationTextRange2
impl PartialEq for IUIAutomationTextRange2
impl Eq for IUIAutomationTextRange2
impl StructuralPartialEq for IUIAutomationTextRange2
Auto Trait Implementations§
impl Freeze for IUIAutomationTextRange2
impl RefUnwindSafe for IUIAutomationTextRange2
impl !Send for IUIAutomationTextRange2
impl !Sync for IUIAutomationTextRange2
impl Unpin for IUIAutomationTextRange2
impl UnwindSafe for IUIAutomationTextRange2
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
type DefaultType = Option<T>
Source§fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
Converts from
Self::DefaultType to Result<T>.Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
fn drop_param(_: &mut Param<'_, Self>)
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