Trait ITfRange_Impl
pub trait ITfRange_Impl: IUnknownImpl {
Show 22 methods
// Required methods
fn GetText(
&self,
ec: u32,
dwflags: u32,
pchtext: PWSTR,
cchmax: u32,
pcch: *mut u32,
) -> Result<()>;
fn SetText(
&self,
ec: u32,
dwflags: u32,
pchtext: &PCWSTR,
cch: i32,
) -> Result<()>;
fn GetFormattedText(&self, ec: u32) -> Result<IDataObject>;
fn GetEmbedded(
&self,
ec: u32,
rguidservice: *const GUID,
riid: *const GUID,
) -> Result<IUnknown>;
fn InsertEmbedded(
&self,
ec: u32,
dwflags: u32,
pdataobject: Ref<'_, IDataObject>,
) -> Result<()>;
fn ShiftStart(
&self,
ec: u32,
cchreq: i32,
pcch: *mut i32,
phalt: *const TF_HALTCOND,
) -> Result<()>;
fn ShiftEnd(
&self,
ec: u32,
cchreq: i32,
pcch: *mut i32,
phalt: *const TF_HALTCOND,
) -> Result<()>;
fn ShiftStartToRange(
&self,
ec: u32,
prange: Ref<'_, ITfRange>,
apos: TfAnchor,
) -> Result<()>;
fn ShiftEndToRange(
&self,
ec: u32,
prange: Ref<'_, ITfRange>,
apos: TfAnchor,
) -> Result<()>;
fn ShiftStartRegion(&self, ec: u32, dir: TfShiftDir) -> Result<BOOL>;
fn ShiftEndRegion(&self, ec: u32, dir: TfShiftDir) -> Result<BOOL>;
fn IsEmpty(&self, ec: u32) -> Result<BOOL>;
fn Collapse(&self, ec: u32, apos: TfAnchor) -> Result<()>;
fn IsEqualStart(
&self,
ec: u32,
pwith: Ref<'_, ITfRange>,
apos: TfAnchor,
) -> Result<BOOL>;
fn IsEqualEnd(
&self,
ec: u32,
pwith: Ref<'_, ITfRange>,
apos: TfAnchor,
) -> Result<BOOL>;
fn CompareStart(
&self,
ec: u32,
pwith: Ref<'_, ITfRange>,
apos: TfAnchor,
) -> Result<i32>;
fn CompareEnd(
&self,
ec: u32,
pwith: Ref<'_, ITfRange>,
apos: TfAnchor,
) -> Result<i32>;
fn AdjustForInsert(&self, ec: u32, cchinsert: u32) -> Result<BOOL>;
fn GetGravity(
&self,
pgstart: *mut TfGravity,
pgend: *mut TfGravity,
) -> Result<()>;
fn SetGravity(
&self,
ec: u32,
gstart: TfGravity,
gend: TfGravity,
) -> Result<()>;
fn Clone(&self) -> Result<ITfRange>;
fn GetContext(&self) -> Result<ITfContext>;
}
Required Methods§
fn GetText( &self, ec: u32, dwflags: u32, pchtext: PWSTR, cchmax: u32, pcch: *mut u32, ) -> Result<()>
fn SetText( &self, ec: u32, dwflags: u32, pchtext: &PCWSTR, cch: i32, ) -> Result<()>
fn GetFormattedText(&self, ec: u32) -> Result<IDataObject>
fn GetEmbedded( &self, ec: u32, rguidservice: *const GUID, riid: *const GUID, ) -> Result<IUnknown>
fn InsertEmbedded( &self, ec: u32, dwflags: u32, pdataobject: Ref<'_, IDataObject>, ) -> Result<()>
fn ShiftStart( &self, ec: u32, cchreq: i32, pcch: *mut i32, phalt: *const TF_HALTCOND, ) -> Result<()>
fn ShiftEnd( &self, ec: u32, cchreq: i32, pcch: *mut i32, phalt: *const TF_HALTCOND, ) -> Result<()>
fn ShiftStartToRange( &self, ec: u32, prange: Ref<'_, ITfRange>, apos: TfAnchor, ) -> Result<()>
fn ShiftEndToRange( &self, ec: u32, prange: Ref<'_, ITfRange>, apos: TfAnchor, ) -> Result<()>
fn ShiftStartRegion(&self, ec: u32, dir: TfShiftDir) -> Result<BOOL>
fn ShiftEndRegion(&self, ec: u32, dir: TfShiftDir) -> Result<BOOL>
fn IsEmpty(&self, ec: u32) -> Result<BOOL>
fn Collapse(&self, ec: u32, apos: TfAnchor) -> Result<()>
fn IsEqualStart( &self, ec: u32, pwith: Ref<'_, ITfRange>, apos: TfAnchor, ) -> Result<BOOL>
fn IsEqualEnd( &self, ec: u32, pwith: Ref<'_, ITfRange>, apos: TfAnchor, ) -> Result<BOOL>
fn CompareStart( &self, ec: u32, pwith: Ref<'_, ITfRange>, apos: TfAnchor, ) -> Result<i32>
fn CompareEnd( &self, ec: u32, pwith: Ref<'_, ITfRange>, apos: TfAnchor, ) -> Result<i32>
fn AdjustForInsert(&self, ec: u32, cchinsert: u32) -> Result<BOOL>
fn GetGravity( &self, pgstart: *mut TfGravity, pgend: *mut TfGravity, ) -> Result<()>
fn SetGravity(&self, ec: u32, gstart: TfGravity, gend: TfGravity) -> Result<()>
fn Clone(&self) -> Result<ITfRange>
fn GetContext(&self) -> Result<ITfContext>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.