Struct ITfContext
pub struct ITfContext(/* private fields */);
Implementations§
§impl ITfContext
impl ITfContext
pub unsafe fn RequestEditSession<P1>(
&self,
tid: u32,
pes: P1,
dwflags: TF_CONTEXT_EDIT_CONTEXT_FLAGS,
) -> Result<HRESULT>where
P1: Param<ITfEditSession>,
pub unsafe fn InWriteSession(&self, tid: u32) -> Result<BOOL>
pub unsafe fn GetSelection( &self, ec: u32, ulindex: u32, pselection: &mut [TF_SELECTION], pcfetched: *mut u32, ) -> Result<()>
pub unsafe fn SetSelection( &self, ec: u32, pselection: &[TF_SELECTION], ) -> Result<()>
pub unsafe fn GetStart(&self, ec: u32) -> Result<ITfRange>
pub unsafe fn GetEnd(&self, ec: u32) -> Result<ITfRange>
pub unsafe fn GetActiveView(&self) -> Result<ITfContextView>
pub unsafe fn EnumViews(&self) -> Result<IEnumTfContextViews>
pub unsafe fn GetStatus(&self) -> Result<TS_STATUS>
pub unsafe fn GetProperty(&self, guidprop: *const GUID) -> Result<ITfProperty>
pub unsafe fn GetAppProperty( &self, guidprop: *const GUID, ) -> Result<ITfReadOnlyProperty>
pub unsafe fn TrackProperties( &self, prgprop: &[*const GUID], prgappprop: &[*const GUID], ) -> Result<ITfReadOnlyProperty>
pub unsafe fn EnumProperties(&self) -> Result<IEnumTfProperties>
pub unsafe fn GetDocumentMgr(&self) -> Result<ITfDocumentMgr>
pub unsafe fn CreateRangeBackup<P1>(
&self,
ec: u32,
prange: P1,
) -> Result<ITfRangeBackup>where
P1: Param<ITfRange>,
Trait Implementations§
§impl CanInto<IUnknown> for ITfContext
impl CanInto<IUnknown> for ITfContext
§impl Clone for ITfContext
impl Clone for ITfContext
§fn clone(&self) -> ITfContext
fn clone(&self) -> ITfContext
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for ITfContext
impl Debug for ITfContext
§impl From<&ITfContext> for &IUnknown
impl From<&ITfContext> for &IUnknown
§fn from(value: &ITfContext) -> Self
fn from(value: &ITfContext) -> Self
Converts to this type from the input type.
§impl From<ITfContext> for IUnknown
impl From<ITfContext> for IUnknown
§fn from(value: ITfContext) -> Self
fn from(value: ITfContext) -> Self
Converts to this type from the input type.
§impl Interface for ITfContext
impl Interface for ITfContext
§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 PartialEq for ITfContext
impl PartialEq for ITfContext
impl Eq for ITfContext
impl StructuralPartialEq for ITfContext
Auto Trait Implementations§
impl Freeze for ITfContext
impl RefUnwindSafe for ITfContext
impl !Send for ITfContext
impl !Sync for ITfContext
impl Unpin for ITfContext
impl UnwindSafe for ITfContext
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