Struct ITfRange
pub struct ITfRange(/* private fields */);
Implementations§
§impl ITfRange
impl ITfRange
pub unsafe fn GetText( &self, ec: u32, dwflags: u32, pchtext: &mut [u16], pcch: *mut u32, ) -> Result<()>
pub unsafe fn SetText( &self, ec: u32, dwflags: u32, pchtext: &[u16], ) -> Result<()>
pub unsafe fn GetFormattedText(&self, ec: u32) -> Result<IDataObject>
pub unsafe fn GetEmbedded( &self, ec: u32, rguidservice: *const GUID, riid: *const GUID, ) -> Result<IUnknown>
pub unsafe fn InsertEmbedded<P2>(
&self,
ec: u32,
dwflags: u32,
pdataobject: P2,
) -> Result<()>where
P2: Param<IDataObject>,
pub unsafe fn ShiftStart( &self, ec: u32, cchreq: i32, pcch: *mut i32, phalt: *const TF_HALTCOND, ) -> Result<()>
pub unsafe fn ShiftEnd( &self, ec: u32, cchreq: i32, pcch: *mut i32, phalt: *const TF_HALTCOND, ) -> Result<()>
pub unsafe fn ShiftStartToRange<P1>(
&self,
ec: u32,
prange: P1,
apos: TfAnchor,
) -> Result<()>where
P1: Param<ITfRange>,
pub unsafe fn ShiftEndToRange<P1>(
&self,
ec: u32,
prange: P1,
apos: TfAnchor,
) -> Result<()>where
P1: Param<ITfRange>,
pub unsafe fn ShiftStartRegion(&self, ec: u32, dir: TfShiftDir) -> Result<BOOL>
pub unsafe fn ShiftEndRegion(&self, ec: u32, dir: TfShiftDir) -> Result<BOOL>
pub unsafe fn IsEmpty(&self, ec: u32) -> Result<BOOL>
pub unsafe fn Collapse(&self, ec: u32, apos: TfAnchor) -> Result<()>
pub unsafe fn IsEqualStart<P1>(
&self,
ec: u32,
pwith: P1,
apos: TfAnchor,
) -> Result<BOOL>where
P1: Param<ITfRange>,
pub unsafe fn IsEqualEnd<P1>(
&self,
ec: u32,
pwith: P1,
apos: TfAnchor,
) -> Result<BOOL>where
P1: Param<ITfRange>,
pub unsafe fn CompareStart<P1>(
&self,
ec: u32,
pwith: P1,
apos: TfAnchor,
) -> Result<i32>where
P1: Param<ITfRange>,
pub unsafe fn CompareEnd<P1>(
&self,
ec: u32,
pwith: P1,
apos: TfAnchor,
) -> Result<i32>where
P1: Param<ITfRange>,
pub unsafe fn AdjustForInsert(&self, ec: u32, cchinsert: u32) -> Result<BOOL>
pub unsafe fn GetGravity( &self, pgstart: *mut TfGravity, pgend: *mut TfGravity, ) -> Result<()>
pub unsafe fn SetGravity( &self, ec: u32, gstart: TfGravity, gend: TfGravity, ) -> Result<()>
pub unsafe fn Clone(&self) -> Result<ITfRange>
pub unsafe fn GetContext(&self) -> Result<ITfContext>
Trait Implementations§
§impl From<&ITfRangeACP> for &ITfRange
impl From<&ITfRangeACP> for &ITfRange
§fn from(value: &ITfRangeACP) -> Self
fn from(value: &ITfRangeACP) -> Self
Converts to this type from the input type.
§impl From<ITfRangeACP> for ITfRange
impl From<ITfRangeACP> for ITfRange
§fn from(value: ITfRangeACP) -> Self
fn from(value: ITfRangeACP) -> Self
Converts to this type from the input type.
§impl Interface for ITfRange
impl Interface for ITfRange
§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.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§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 Eq for ITfRange
impl StructuralPartialEq for ITfRange
Auto Trait Implementations§
impl Freeze for ITfRange
impl RefUnwindSafe for ITfRange
impl !Send for ITfRange
impl !Sync for ITfRange
impl Unpin for ITfRange
impl UnwindSafe for ITfRange
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