Trait windows::Win32::UI::TextServices::ITextStoreAnchor_Impl

pub trait ITextStoreAnchor_Impl: Sized {
Show 27 methods // Required methods fn AdviseSink( &self, riid: *const GUID, punk: Option<&IUnknown>, dwmask: u32, ) -> Result<()>; fn UnadviseSink(&self, punk: Option<&IUnknown>) -> Result<()>; fn RequestLock(&self, dwlockflags: u32) -> Result<HRESULT>; fn GetStatus(&self) -> Result<TS_STATUS>; fn QueryInsert( &self, pateststart: Option<&IAnchor>, patestend: Option<&IAnchor>, cch: u32, pparesultstart: *mut Option<IAnchor>, pparesultend: *mut Option<IAnchor>, ) -> Result<()>; fn GetSelection( &self, ulindex: u32, ulcount: u32, pselection: *mut TS_SELECTION_ANCHOR, pcfetched: *mut u32, ) -> Result<()>; fn SetSelection( &self, ulcount: u32, pselection: *const TS_SELECTION_ANCHOR, ) -> Result<()>; fn GetText( &self, dwflags: u32, pastart: Option<&IAnchor>, paend: Option<&IAnchor>, pchtext: PWSTR, cchreq: u32, pcch: *mut u32, fupdateanchor: BOOL, ) -> Result<()>; fn SetText( &self, dwflags: u32, pastart: Option<&IAnchor>, paend: Option<&IAnchor>, pchtext: &PCWSTR, cch: u32, ) -> Result<()>; fn GetFormattedText( &self, pastart: Option<&IAnchor>, paend: Option<&IAnchor>, ) -> Result<IDataObject>; fn GetEmbedded( &self, dwflags: u32, papos: Option<&IAnchor>, rguidservice: *const GUID, riid: *const GUID, ) -> Result<IUnknown>; fn InsertEmbedded( &self, dwflags: u32, pastart: Option<&IAnchor>, paend: Option<&IAnchor>, pdataobject: Option<&IDataObject>, ) -> Result<()>; fn RequestSupportedAttrs( &self, dwflags: u32, cfilterattrs: u32, pafilterattrs: *const GUID, ) -> Result<()>; fn RequestAttrsAtPosition( &self, papos: Option<&IAnchor>, cfilterattrs: u32, pafilterattrs: *const GUID, dwflags: u32, ) -> Result<()>; fn RequestAttrsTransitioningAtPosition( &self, papos: Option<&IAnchor>, cfilterattrs: u32, pafilterattrs: *const GUID, dwflags: u32, ) -> Result<()>; fn FindNextAttrTransition( &self, pastart: Option<&IAnchor>, pahalt: Option<&IAnchor>, cfilterattrs: u32, pafilterattrs: *const GUID, dwflags: u32, pffound: *mut BOOL, plfoundoffset: *mut i32, ) -> Result<()>; fn RetrieveRequestedAttrs( &self, ulcount: u32, paattrvals: *mut TS_ATTRVAL, pcfetched: *mut u32, ) -> Result<()>; fn GetStart(&self) -> Result<IAnchor>; fn GetEnd(&self) -> Result<IAnchor>; fn GetActiveView(&self) -> Result<u32>; fn GetAnchorFromPoint( &self, vcview: u32, ptscreen: *const POINT, dwflags: u32, ) -> Result<IAnchor>; fn GetTextExt( &self, vcview: u32, pastart: Option<&IAnchor>, paend: Option<&IAnchor>, prc: *mut RECT, pfclipped: *mut BOOL, ) -> Result<()>; fn GetScreenExt(&self, vcview: u32) -> Result<RECT>; fn GetWnd(&self, vcview: u32) -> Result<HWND>; fn QueryInsertEmbedded( &self, pguidservice: *const GUID, pformatetc: *const FORMATETC, ) -> Result<BOOL>; fn InsertTextAtSelection( &self, dwflags: u32, pchtext: &PCWSTR, cch: u32, ppastart: *mut Option<IAnchor>, ppaend: *mut Option<IAnchor>, ) -> Result<()>; fn InsertEmbeddedAtSelection( &self, dwflags: u32, pdataobject: Option<&IDataObject>, ppastart: *mut Option<IAnchor>, ppaend: *mut Option<IAnchor>, ) -> Result<()>;
}

Required Methods§

fn AdviseSink( &self, riid: *const GUID, punk: Option<&IUnknown>, dwmask: u32, ) -> Result<()>

fn UnadviseSink(&self, punk: Option<&IUnknown>) -> Result<()>

fn RequestLock(&self, dwlockflags: u32) -> Result<HRESULT>

fn GetStatus(&self) -> Result<TS_STATUS>

fn QueryInsert( &self, pateststart: Option<&IAnchor>, patestend: Option<&IAnchor>, cch: u32, pparesultstart: *mut Option<IAnchor>, pparesultend: *mut Option<IAnchor>, ) -> Result<()>

fn GetSelection( &self, ulindex: u32, ulcount: u32, pselection: *mut TS_SELECTION_ANCHOR, pcfetched: *mut u32, ) -> Result<()>

fn SetSelection( &self, ulcount: u32, pselection: *const TS_SELECTION_ANCHOR, ) -> Result<()>

fn GetText( &self, dwflags: u32, pastart: Option<&IAnchor>, paend: Option<&IAnchor>, pchtext: PWSTR, cchreq: u32, pcch: *mut u32, fupdateanchor: BOOL, ) -> Result<()>

fn SetText( &self, dwflags: u32, pastart: Option<&IAnchor>, paend: Option<&IAnchor>, pchtext: &PCWSTR, cch: u32, ) -> Result<()>

fn GetFormattedText( &self, pastart: Option<&IAnchor>, paend: Option<&IAnchor>, ) -> Result<IDataObject>

fn GetEmbedded( &self, dwflags: u32, papos: Option<&IAnchor>, rguidservice: *const GUID, riid: *const GUID, ) -> Result<IUnknown>

fn InsertEmbedded( &self, dwflags: u32, pastart: Option<&IAnchor>, paend: Option<&IAnchor>, pdataobject: Option<&IDataObject>, ) -> Result<()>

fn RequestSupportedAttrs( &self, dwflags: u32, cfilterattrs: u32, pafilterattrs: *const GUID, ) -> Result<()>

fn RequestAttrsAtPosition( &self, papos: Option<&IAnchor>, cfilterattrs: u32, pafilterattrs: *const GUID, dwflags: u32, ) -> Result<()>

fn RequestAttrsTransitioningAtPosition( &self, papos: Option<&IAnchor>, cfilterattrs: u32, pafilterattrs: *const GUID, dwflags: u32, ) -> Result<()>

fn FindNextAttrTransition( &self, pastart: Option<&IAnchor>, pahalt: Option<&IAnchor>, cfilterattrs: u32, pafilterattrs: *const GUID, dwflags: u32, pffound: *mut BOOL, plfoundoffset: *mut i32, ) -> Result<()>

fn RetrieveRequestedAttrs( &self, ulcount: u32, paattrvals: *mut TS_ATTRVAL, pcfetched: *mut u32, ) -> Result<()>

fn GetStart(&self) -> Result<IAnchor>

fn GetEnd(&self) -> Result<IAnchor>

fn GetActiveView(&self) -> Result<u32>

fn GetAnchorFromPoint( &self, vcview: u32, ptscreen: *const POINT, dwflags: u32, ) -> Result<IAnchor>

fn GetTextExt( &self, vcview: u32, pastart: Option<&IAnchor>, paend: Option<&IAnchor>, prc: *mut RECT, pfclipped: *mut BOOL, ) -> Result<()>

fn GetScreenExt(&self, vcview: u32) -> Result<RECT>

fn GetWnd(&self, vcview: u32) -> Result<HWND>

fn QueryInsertEmbedded( &self, pguidservice: *const GUID, pformatetc: *const FORMATETC, ) -> Result<BOOL>

fn InsertTextAtSelection( &self, dwflags: u32, pchtext: &PCWSTR, cch: u32, ppastart: *mut Option<IAnchor>, ppaend: *mut Option<IAnchor>, ) -> Result<()>

fn InsertEmbeddedAtSelection( &self, dwflags: u32, pdataobject: Option<&IDataObject>, ppastart: *mut Option<IAnchor>, ppaend: *mut Option<IAnchor>, ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§