Struct windows::Win32::UI::TextServices::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<P0>(
&self,
ec: u32,
dwflags: u32,
pdataobject: P0,
) -> Result<()>where
P0: 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<P0>(
&self,
ec: u32,
prange: P0,
apos: TfAnchor,
) -> Result<()>where
P0: Param<ITfRange>,
pub unsafe fn ShiftEndToRange<P0>(
&self,
ec: u32,
prange: P0,
apos: TfAnchor,
) -> Result<()>where
P0: 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<P0>(
&self,
ec: u32,
pwith: P0,
apos: TfAnchor,
) -> Result<BOOL>where
P0: Param<ITfRange>,
pub unsafe fn IsEqualEnd<P0>(
&self,
ec: u32,
pwith: P0,
apos: TfAnchor,
) -> Result<BOOL>where
P0: Param<ITfRange>,
pub unsafe fn CompareStart<P0>(
&self,
ec: u32,
pwith: P0,
apos: TfAnchor,
) -> Result<i32>where
P0: Param<ITfRange>,
pub unsafe fn CompareEnd<P0>(
&self,
ec: u32,
pwith: P0,
apos: TfAnchor,
) -> Result<i32>where
P0: 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.
§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
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
)