Trait windows::Win32::UI::TextServices::ITextStoreACP2_Impl
pub trait ITextStoreACP2_Impl: Sized {
Show 25 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,
acpteststart: i32,
acptestend: i32,
cch: u32,
pacpresultstart: *mut i32,
pacpresultend: *mut i32,
) -> Result<()>;
fn GetSelection(
&self,
ulindex: u32,
ulcount: u32,
pselection: *mut TS_SELECTION_ACP,
pcfetched: *mut u32,
) -> Result<()>;
fn SetSelection(
&self,
ulcount: u32,
pselection: *const TS_SELECTION_ACP,
) -> Result<()>;
fn GetText(
&self,
acpstart: i32,
acpend: i32,
pchplain: PWSTR,
cchplainreq: u32,
pcchplainret: *mut u32,
prgruninfo: *mut TS_RUNINFO,
cruninforeq: u32,
pcruninforet: *mut u32,
pacpnext: *mut i32,
) -> Result<()>;
fn SetText(
&self,
dwflags: u32,
acpstart: i32,
acpend: i32,
pchtext: &PCWSTR,
cch: u32,
) -> Result<TS_TEXTCHANGE>;
fn GetFormattedText(
&self,
acpstart: i32,
acpend: i32,
) -> Result<IDataObject>;
fn GetEmbedded(
&self,
acppos: i32,
rguidservice: *const GUID,
riid: *const GUID,
) -> Result<IUnknown>;
fn QueryInsertEmbedded(
&self,
pguidservice: *const GUID,
pformatetc: *const FORMATETC,
) -> Result<BOOL>;
fn InsertEmbedded(
&self,
dwflags: u32,
acpstart: i32,
acpend: i32,
pdataobject: Option<&IDataObject>,
) -> Result<TS_TEXTCHANGE>;
fn InsertTextAtSelection(
&self,
dwflags: u32,
pchtext: &PCWSTR,
cch: u32,
pacpstart: *mut i32,
pacpend: *mut i32,
pchange: *mut TS_TEXTCHANGE,
) -> Result<()>;
fn InsertEmbeddedAtSelection(
&self,
dwflags: u32,
pdataobject: Option<&IDataObject>,
pacpstart: *mut i32,
pacpend: *mut i32,
pchange: *mut TS_TEXTCHANGE,
) -> Result<()>;
fn RequestSupportedAttrs(
&self,
dwflags: u32,
cfilterattrs: u32,
pafilterattrs: *const GUID,
) -> Result<()>;
fn RequestAttrsAtPosition(
&self,
acppos: i32,
cfilterattrs: u32,
pafilterattrs: *const GUID,
dwflags: u32,
) -> Result<()>;
fn RequestAttrsTransitioningAtPosition(
&self,
acppos: i32,
cfilterattrs: u32,
pafilterattrs: *const GUID,
dwflags: u32,
) -> Result<()>;
fn FindNextAttrTransition(
&self,
acpstart: i32,
acphalt: i32,
cfilterattrs: u32,
pafilterattrs: *const GUID,
dwflags: u32,
pacpnext: *mut i32,
pffound: *mut BOOL,
plfoundoffset: *mut i32,
) -> Result<()>;
fn RetrieveRequestedAttrs(
&self,
ulcount: u32,
paattrvals: *mut TS_ATTRVAL,
pcfetched: *mut u32,
) -> Result<()>;
fn GetEndACP(&self) -> Result<i32>;
fn GetActiveView(&self) -> Result<u32>;
fn GetACPFromPoint(
&self,
vcview: u32,
ptscreen: *const POINT,
dwflags: u32,
) -> Result<i32>;
fn GetTextExt(
&self,
vcview: u32,
acpstart: i32,
acpend: i32,
prc: *mut RECT,
pfclipped: *mut BOOL,
) -> Result<()>;
fn GetScreenExt(&self, vcview: u32) -> Result<RECT>;
}
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, acpteststart: i32, acptestend: i32, cch: u32, pacpresultstart: *mut i32, pacpresultend: *mut i32, ) -> Result<()>
fn GetSelection( &self, ulindex: u32, ulcount: u32, pselection: *mut TS_SELECTION_ACP, pcfetched: *mut u32, ) -> Result<()>
fn SetSelection( &self, ulcount: u32, pselection: *const TS_SELECTION_ACP, ) -> Result<()>
fn GetText( &self, acpstart: i32, acpend: i32, pchplain: PWSTR, cchplainreq: u32, pcchplainret: *mut u32, prgruninfo: *mut TS_RUNINFO, cruninforeq: u32, pcruninforet: *mut u32, pacpnext: *mut i32, ) -> Result<()>
fn SetText( &self, dwflags: u32, acpstart: i32, acpend: i32, pchtext: &PCWSTR, cch: u32, ) -> Result<TS_TEXTCHANGE>
fn GetFormattedText(&self, acpstart: i32, acpend: i32) -> Result<IDataObject>
fn GetEmbedded( &self, acppos: i32, rguidservice: *const GUID, riid: *const GUID, ) -> Result<IUnknown>
fn QueryInsertEmbedded( &self, pguidservice: *const GUID, pformatetc: *const FORMATETC, ) -> Result<BOOL>
fn InsertEmbedded( &self, dwflags: u32, acpstart: i32, acpend: i32, pdataobject: Option<&IDataObject>, ) -> Result<TS_TEXTCHANGE>
fn InsertTextAtSelection( &self, dwflags: u32, pchtext: &PCWSTR, cch: u32, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE, ) -> Result<()>
fn InsertEmbeddedAtSelection( &self, dwflags: u32, pdataobject: Option<&IDataObject>, pacpstart: *mut i32, pacpend: *mut i32, pchange: *mut TS_TEXTCHANGE, ) -> Result<()>
fn RequestSupportedAttrs( &self, dwflags: u32, cfilterattrs: u32, pafilterattrs: *const GUID, ) -> Result<()>
fn RequestAttrsAtPosition( &self, acppos: i32, cfilterattrs: u32, pafilterattrs: *const GUID, dwflags: u32, ) -> Result<()>
fn RequestAttrsTransitioningAtPosition( &self, acppos: i32, cfilterattrs: u32, pafilterattrs: *const GUID, dwflags: u32, ) -> Result<()>
fn FindNextAttrTransition( &self, acpstart: i32, acphalt: i32, cfilterattrs: u32, pafilterattrs: *const GUID, dwflags: u32, pacpnext: *mut i32, pffound: *mut BOOL, plfoundoffset: *mut i32, ) -> Result<()>
fn RetrieveRequestedAttrs( &self, ulcount: u32, paattrvals: *mut TS_ATTRVAL, pcfetched: *mut u32, ) -> Result<()>
fn GetEndACP(&self) -> Result<i32>
fn GetActiveView(&self) -> Result<u32>
fn GetACPFromPoint( &self, vcview: u32, ptscreen: *const POINT, dwflags: u32, ) -> Result<i32>
fn GetTextExt( &self, vcview: u32, acpstart: i32, acpend: i32, prc: *mut RECT, pfclipped: *mut BOOL, ) -> Result<()>
fn GetScreenExt(&self, vcview: u32) -> Result<RECT>
Object Safety§
This trait is not object safe.