pub struct ITextHost2(/* private fields */);
Implementations§
§impl ITextHost2
impl ITextHost2
pub unsafe fn TxIsDoubleClickPending(&self) -> BOOL
pub unsafe fn TxGetWindow(&self, phwnd: *mut HWND) -> Result<()>
pub unsafe fn TxSetForegroundWindow(&self) -> Result<()>
pub unsafe fn TxGetPalette(&self) -> HPALETTE
pub unsafe fn TxGetEastAsianFlags(&self, pflags: *mut i32) -> Result<()>
pub unsafe fn TxSetCursor2<P0, P1>(&self, hcur: P0, btext: P1) -> HCURSOR
pub unsafe fn TxFreeTextServicesNotification(&self)
pub unsafe fn TxGetEditStyle( &self, dwitem: u32, pdwdata: *mut u32, ) -> Result<()>
pub unsafe fn TxGetWindowStyles( &self, pdwstyle: *mut u32, pdwexstyle: *mut u32, ) -> Result<()>
pub unsafe fn TxShowDropCaret<P0, P1>( &self, fshow: P0, hdc: P1, prc: *mut RECT, ) -> Result<()>
pub unsafe fn TxDestroyCaret(&self) -> Result<()>
pub unsafe fn TxGetHorzExtent(&self, plhorzextent: *mut i32) -> Result<()>
Methods from Deref<Target = ITextHost>§
pub unsafe fn TxGetDC(&self) -> HDC
pub unsafe fn TxReleaseDC<P0>(&self, hdc: P0) -> i32where
P0: Param<HDC>,
pub unsafe fn TxShowScrollBar<P0>(&self, fnbar: i32, fshow: P0) -> BOOLwhere
P0: Param<BOOL>,
pub unsafe fn TxEnableScrollBar( &self, fusbflags: SCROLLBAR_CONSTANTS, fuarrowflags: i32, ) -> BOOL
pub unsafe fn TxSetScrollRange<P0>(
&self,
fnbar: i32,
nminpos: i32,
nmaxpos: i32,
fredraw: P0,
) -> BOOLwhere
P0: Param<BOOL>,
pub unsafe fn TxSetScrollPos<P0>(
&self,
fnbar: i32,
npos: i32,
fredraw: P0,
) -> BOOLwhere
P0: Param<BOOL>,
pub unsafe fn TxInvalidateRect<P0>(&self, prc: *mut RECT, fmode: P0)where
P0: Param<BOOL>,
pub unsafe fn TxViewChange<P0>(&self, fupdate: P0)where
P0: Param<BOOL>,
pub unsafe fn TxCreateCaret<P0>(
&self,
hbmp: P0,
xwidth: i32,
yheight: i32,
) -> BOOLwhere
P0: Param<HBITMAP>,
pub unsafe fn TxShowCaret<P0>(&self, fshow: P0) -> BOOLwhere
P0: Param<BOOL>,
pub unsafe fn TxSetCaretPos(&self, x: i32, y: i32) -> BOOL
pub unsafe fn TxSetTimer(&self, idtimer: u32, utimeout: u32) -> BOOL
pub unsafe fn TxKillTimer(&self, idtimer: u32)
pub unsafe fn TxScrollWindowEx<P0>(
&self,
dx: i32,
dy: i32,
lprcscroll: *mut RECT,
lprcclip: *mut RECT,
hrgnupdate: P0,
lprcupdate: *mut RECT,
fuscroll: SCROLL_WINDOW_FLAGS,
)where
P0: Param<HRGN>,
pub unsafe fn TxSetCapture<P0>(&self, fcapture: P0)where
P0: Param<BOOL>,
pub unsafe fn TxSetFocus(&self)
pub unsafe fn TxSetCursor<P0, P1>(&self, hcur: P0, ftext: P1)
pub unsafe fn TxScreenToClient(&self, lppt: *mut POINT) -> BOOL
pub unsafe fn TxClientToScreen(&self, lppt: *mut POINT) -> BOOL
pub unsafe fn TxActivate(&self, ploldstate: *mut i32) -> Result<()>
pub unsafe fn TxDeactivate(&self, lnewstate: i32) -> Result<()>
pub unsafe fn TxGetClientRect(&self, prc: *mut RECT) -> Result<()>
pub unsafe fn TxGetViewInset(&self, prc: *mut RECT) -> Result<()>
pub unsafe fn TxGetCharFormat( &self, ppcf: *const *const CHARFORMATW, ) -> Result<()>
pub unsafe fn TxGetParaFormat( &self, pppf: *const *const PARAFORMAT, ) -> Result<()>
pub unsafe fn TxGetSysColor(&self, nindex: SYS_COLOR_INDEX) -> COLORREF
pub unsafe fn TxGetBackStyle(&self, pstyle: *mut TXTBACKSTYLE) -> Result<()>
pub unsafe fn TxGetMaxLength(&self, plength: *mut u32) -> Result<()>
pub unsafe fn TxGetScrollBars(&self, pdwscrollbar: *mut u32) -> Result<()>
pub unsafe fn TxGetPasswordChar(&self) -> Result<i8>
pub unsafe fn TxGetAcceleratorPos(&self, pcp: *mut i32) -> Result<()>
pub unsafe fn TxGetExtent(&self, lpextent: *mut SIZE) -> Result<()>
pub unsafe fn OnTxCharFormatChange(&self, pcf: *const CHARFORMATW) -> Result<()>
pub unsafe fn OnTxParaFormatChange(&self, ppf: *const PARAFORMAT) -> Result<()>
pub unsafe fn TxGetPropertyBits( &self, dwmask: u32, pdwbits: *mut u32, ) -> Result<()>
pub unsafe fn TxNotify(&self, inotify: u32, pv: *mut c_void) -> Result<()>
pub unsafe fn TxImmGetContext(&self) -> HIMC
pub unsafe fn TxImmReleaseContext<P0>(&self, himc: P0)where
P0: Param<HIMC>,
pub unsafe fn TxGetSelectionBarWidth( &self, lselbarwidth: *mut i32, ) -> Result<()>
Trait Implementations§
§impl CanInto<IUnknown> for ITextHost2
impl CanInto<IUnknown> for ITextHost2
§impl Clone for ITextHost2
impl Clone for ITextHost2
§fn clone(&self) -> ITextHost2
fn clone(&self) -> ITextHost2
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 ITextHost2
impl Debug for ITextHost2
§impl Deref for ITextHost2
impl Deref for ITextHost2
§impl From<&ITextHost2> for &ITextHost
impl From<&ITextHost2> for &ITextHost
§fn from(value: &ITextHost2) -> Self
fn from(value: &ITextHost2) -> Self
Converts to this type from the input type.
§impl From<&ITextHost2> for &IUnknown
impl From<&ITextHost2> for &IUnknown
§fn from(value: &ITextHost2) -> Self
fn from(value: &ITextHost2) -> Self
Converts to this type from the input type.
§impl From<ITextHost2> for ITextHost
impl From<ITextHost2> for ITextHost
§fn from(value: ITextHost2) -> Self
fn from(value: ITextHost2) -> Self
Converts to this type from the input type.
§impl From<ITextHost2> for IUnknown
impl From<ITextHost2> for IUnknown
§fn from(value: ITextHost2) -> Self
fn from(value: ITextHost2) -> Self
Converts to this type from the input type.
§impl Interface for ITextHost2
impl Interface for ITextHost2
§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 PartialEq for ITextHost2
impl PartialEq for ITextHost2
§fn eq(&self, other: &ITextHost2) -> bool
fn eq(&self, other: &ITextHost2) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ITextHost2
impl StructuralPartialEq for ITextHost2
Auto Trait Implementations§
impl Freeze for ITextHost2
impl RefUnwindSafe for ITextHost2
impl !Send for ITextHost2
impl !Sync for ITextHost2
impl Unpin for ITextHost2
impl UnwindSafe for ITextHost2
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
)