pub struct ITextProvider2(/* private fields */);
Implementations§
Source§impl ITextProvider2
impl ITextProvider2
pub unsafe fn GetSelection(&self) -> Result<*mut SAFEARRAY>
pub unsafe fn GetVisibleRanges(&self) -> Result<*mut SAFEARRAY>
pub unsafe fn RangeFromChild<'a>( &self, childelement: impl IntoParam<'a, IRawElementProviderSimple>, ) -> Result<ITextRangeProvider>
pub unsafe fn RangeFromPoint<'a>( &self, point: impl IntoParam<'a, UiaPoint>, ) -> Result<ITextRangeProvider>
pub unsafe fn get_DocumentRange(&self) -> Result<ITextRangeProvider>
pub unsafe fn get_SupportedTextSelection( &self, ) -> Result<SupportedTextSelection>
pub unsafe fn RangeFromAnnotation<'a>( &self, annotationelement: impl IntoParam<'a, IRawElementProviderSimple>, ) -> Result<ITextRangeProvider>
pub unsafe fn GetCaretRange( &self, isactive: *mut BOOL, pretval: *mut Option<ITextRangeProvider>, ) -> Result<()>
Trait Implementations§
Source§impl Clone for ITextProvider2
impl Clone for ITextProvider2
Source§fn clone(&self) -> ITextProvider2
fn clone(&self) -> ITextProvider2
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 ITextProvider2
impl Debug for ITextProvider2
Source§impl From<&ITextProvider2> for ITextProvider
impl From<&ITextProvider2> for ITextProvider
Source§fn from(value: &ITextProvider2) -> Self
fn from(value: &ITextProvider2) -> Self
Converts to this type from the input type.
Source§impl From<&ITextProvider2> for IUnknown
impl From<&ITextProvider2> for IUnknown
Source§fn from(value: &ITextProvider2) -> Self
fn from(value: &ITextProvider2) -> Self
Converts to this type from the input type.
Source§impl From<ITextProvider2> for ITextProvider
impl From<ITextProvider2> for ITextProvider
Source§fn from(value: ITextProvider2) -> Self
fn from(value: ITextProvider2) -> Self
Converts to this type from the input type.
Source§impl From<ITextProvider2> for IUnknown
impl From<ITextProvider2> for IUnknown
Source§fn from(value: ITextProvider2) -> Self
fn from(value: ITextProvider2) -> Self
Converts to this type from the input type.
Source§impl Interface for ITextProvider2
impl Interface for ITextProvider2
const IID: Guid
type Vtable = ITextProvider2_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 ITextProvider2
impl PartialEq for ITextProvider2
impl Eq for ITextProvider2
impl StructuralPartialEq for ITextProvider2
Auto Trait Implementations§
impl Freeze for ITextProvider2
impl RefUnwindSafe for ITextProvider2
impl !Send for ITextProvider2
impl !Sync for ITextProvider2
impl Unpin for ITextProvider2
impl UnwindSafe for ITextProvider2
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