Struct windows::Win32::UI::TextServices::ITextStoreAnchor
pub struct ITextStoreAnchor(/* private fields */);
Implementations§
§impl ITextStoreAnchor
impl ITextStoreAnchor
pub unsafe fn AdviseSink<P0>(
&self,
riid: *const GUID,
punk: P0,
dwmask: u32,
) -> Result<()>where
P0: Param<IUnknown>,
pub unsafe fn UnadviseSink<P0>(&self, punk: P0) -> Result<()>where
P0: Param<IUnknown>,
pub unsafe fn RequestLock(&self, dwlockflags: u32) -> Result<HRESULT>
pub unsafe fn GetStatus(&self) -> Result<TS_STATUS>
pub unsafe fn QueryInsert<P0, P1>( &self, pateststart: P0, patestend: P1, cch: u32, pparesultstart: *mut Option<IAnchor>, pparesultend: *mut Option<IAnchor>, ) -> Result<()>
pub unsafe fn GetSelection( &self, ulindex: u32, pselection: &mut [TS_SELECTION_ANCHOR], pcfetched: *mut u32, ) -> Result<()>
pub unsafe fn SetSelection( &self, pselection: &[TS_SELECTION_ANCHOR], ) -> Result<()>
pub unsafe fn GetText<P0, P1, P2>( &self, dwflags: u32, pastart: P0, paend: P1, pchtext: &mut [u16], pcch: *mut u32, fupdateanchor: P2, ) -> Result<()>
pub unsafe fn SetText<P0, P1>( &self, dwflags: u32, pastart: P0, paend: P1, pchtext: &[u16], ) -> Result<()>
pub unsafe fn GetFormattedText<P0, P1>( &self, pastart: P0, paend: P1, ) -> Result<IDataObject>
pub unsafe fn GetEmbedded<P0>(
&self,
dwflags: u32,
papos: P0,
rguidservice: *const GUID,
riid: *const GUID,
) -> Result<IUnknown>where
P0: Param<IAnchor>,
pub unsafe fn InsertEmbedded<P0, P1, P2>( &self, dwflags: u32, pastart: P0, paend: P1, pdataobject: P2, ) -> Result<()>
pub unsafe fn RequestSupportedAttrs( &self, dwflags: u32, pafilterattrs: &[GUID], ) -> Result<()>
pub unsafe fn RequestAttrsAtPosition<P0>(
&self,
papos: P0,
pafilterattrs: &[GUID],
dwflags: u32,
) -> Result<()>where
P0: Param<IAnchor>,
pub unsafe fn RequestAttrsTransitioningAtPosition<P0>(
&self,
papos: P0,
pafilterattrs: &[GUID],
dwflags: u32,
) -> Result<()>where
P0: Param<IAnchor>,
pub unsafe fn FindNextAttrTransition<P0, P1>( &self, pastart: P0, pahalt: P1, pafilterattrs: &[GUID], dwflags: u32, pffound: *mut BOOL, plfoundoffset: *mut i32, ) -> Result<()>
pub unsafe fn RetrieveRequestedAttrs( &self, paattrvals: &mut [TS_ATTRVAL], pcfetched: *mut u32, ) -> Result<()>
pub unsafe fn GetStart(&self) -> Result<IAnchor>
pub unsafe fn GetEnd(&self) -> Result<IAnchor>
pub unsafe fn GetActiveView(&self) -> Result<u32>
pub unsafe fn GetAnchorFromPoint( &self, vcview: u32, ptscreen: *const POINT, dwflags: u32, ) -> Result<IAnchor>
pub unsafe fn GetTextExt<P0, P1>( &self, vcview: u32, pastart: P0, paend: P1, prc: *mut RECT, pfclipped: *mut BOOL, ) -> Result<()>
pub unsafe fn GetScreenExt(&self, vcview: u32) -> Result<RECT>
pub unsafe fn GetWnd(&self, vcview: u32) -> Result<HWND>
pub unsafe fn QueryInsertEmbedded( &self, pguidservice: *const GUID, pformatetc: *const FORMATETC, ) -> Result<BOOL>
pub unsafe fn InsertTextAtSelection( &self, dwflags: u32, pchtext: &[u16], ppastart: *mut Option<IAnchor>, ppaend: *mut Option<IAnchor>, ) -> Result<()>
pub unsafe fn InsertEmbeddedAtSelection<P0>(
&self,
dwflags: u32,
pdataobject: P0,
ppastart: *mut Option<IAnchor>,
ppaend: *mut Option<IAnchor>,
) -> Result<()>where
P0: Param<IDataObject>,
Trait Implementations§
§impl CanInto<IUnknown> for ITextStoreAnchor
impl CanInto<IUnknown> for ITextStoreAnchor
§impl Clone for ITextStoreAnchor
impl Clone for ITextStoreAnchor
§fn clone(&self) -> ITextStoreAnchor
fn clone(&self) -> ITextStoreAnchor
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 ITextStoreAnchor
impl Debug for ITextStoreAnchor
§impl Deref for ITextStoreAnchor
impl Deref for ITextStoreAnchor
§impl From<&ITextStoreAnchor> for &IUnknown
impl From<&ITextStoreAnchor> for &IUnknown
§fn from(value: &ITextStoreAnchor) -> Self
fn from(value: &ITextStoreAnchor) -> Self
Converts to this type from the input type.
§impl From<ITextStoreAnchor> for IUnknown
impl From<ITextStoreAnchor> for IUnknown
§fn from(value: ITextStoreAnchor) -> Self
fn from(value: ITextStoreAnchor) -> Self
Converts to this type from the input type.
§impl Interface for ITextStoreAnchor
impl Interface for ITextStoreAnchor
§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 ITextStoreAnchor
impl PartialEq for ITextStoreAnchor
§fn eq(&self, other: &ITextStoreAnchor) -> bool
fn eq(&self, other: &ITextStoreAnchor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ITextStoreAnchor
impl StructuralPartialEq for ITextStoreAnchor
Auto Trait Implementations§
impl Freeze for ITextStoreAnchor
impl RefUnwindSafe for ITextStoreAnchor
impl !Send for ITextStoreAnchor
impl !Sync for ITextStoreAnchor
impl Unpin for ITextStoreAnchor
impl UnwindSafe for ITextStoreAnchor
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
)