pub struct ITextHost(/* private fields */);
Implementations§
Source§impl ITextHost
impl ITextHost
pub unsafe fn TxGetDC(&self) -> HDC
pub unsafe fn TxReleaseDC<'a>(&self, hdc: impl IntoParam<'a, HDC>) -> i32
pub unsafe fn TxShowScrollBar<'a>( &self, fnbar: i32, fshow: impl IntoParam<'a, BOOL>, ) -> BOOL
pub unsafe fn TxEnableScrollBar( &self, fusbflags: SCROLLBAR_CONSTANTS, fuarrowflags: ENABLE_SCROLL_BAR_ARROWS, ) -> BOOL
pub unsafe fn TxSetScrollRange<'a>( &self, fnbar: i32, nminpos: i32, nmaxpos: i32, fredraw: impl IntoParam<'a, BOOL>, ) -> BOOL
pub unsafe fn TxSetScrollPos<'a>( &self, fnbar: i32, npos: i32, fredraw: impl IntoParam<'a, BOOL>, ) -> BOOL
pub unsafe fn TxInvalidateRect<'a>( &self, prc: *mut RECT, fmode: impl IntoParam<'a, BOOL>, )
pub unsafe fn TxViewChange<'a>(&self, fupdate: impl IntoParam<'a, BOOL>)
pub unsafe fn TxCreateCaret<'a>( &self, hbmp: impl IntoParam<'a, HBITMAP>, xwidth: i32, yheight: i32, ) -> BOOL
pub unsafe fn TxShowCaret<'a>(&self, fshow: impl IntoParam<'a, BOOL>) -> 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<'a>( &self, dx: i32, dy: i32, lprcscroll: *mut RECT, lprcclip: *mut RECT, hrgnupdate: impl IntoParam<'a, HRGN>, lprcupdate: *mut RECT, fuscroll: SHOW_WINDOW_CMD, )
pub unsafe fn TxSetCapture<'a>(&self, fcapture: impl IntoParam<'a, BOOL>)
pub unsafe fn TxSetFocus(&self)
pub unsafe fn TxSetCursor<'a>( &self, hcur: impl IntoParam<'a, HCURSOR>, ftext: impl IntoParam<'a, BOOL>, )
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: i32) -> u32
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<'a>(&self, himc: impl IntoParam<'a, HIMC>)
pub unsafe fn TxGetSelectionBarWidth( &self, lselbarwidth: *mut i32, ) -> Result<()>
Trait Implementations§
Source§impl From<&ITextHost2> for ITextHost
impl From<&ITextHost2> for ITextHost
Source§fn from(value: &ITextHost2) -> Self
fn from(value: &ITextHost2) -> Self
Converts to this type from the input type.
Source§impl From<ITextHost2> for ITextHost
impl From<ITextHost2> for ITextHost
Source§fn from(value: ITextHost2) -> Self
fn from(value: ITextHost2) -> Self
Converts to this type from the input type.
Source§impl Interface for ITextHost
impl Interface for ITextHost
const IID: Guid
type Vtable = ITextHost_abi
Source§unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
Safety Read more
Source§unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
Safety Read more
impl Eq for ITextHost
impl StructuralPartialEq for ITextHost
Auto Trait Implementations§
impl Freeze for ITextHost
impl RefUnwindSafe for ITextHost
impl !Send for ITextHost
impl !Sync for ITextHost
impl Unpin for ITextHost
impl UnwindSafe for ITextHost
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
type DefaultType = Option<T>
Source§fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
Converts from
Self::DefaultType
to Result<T>
.Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
fn drop_param(_: &mut Param<'_, Self>)
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