Trait ITfKeystrokeMgr_Impl
pub trait ITfKeystrokeMgr_Impl: IUnknownImpl {
Show 14 methods
// Required methods
fn AdviseKeyEventSink(
&self,
tid: u32,
psink: Ref<'_, ITfKeyEventSink>,
fforeground: BOOL,
) -> Result<()>;
fn UnadviseKeyEventSink(&self, tid: u32) -> Result<()>;
fn GetForeground(&self) -> Result<GUID>;
fn TestKeyDown(&self, wparam: WPARAM, lparam: LPARAM) -> Result<BOOL>;
fn TestKeyUp(&self, wparam: WPARAM, lparam: LPARAM) -> Result<BOOL>;
fn KeyDown(&self, wparam: WPARAM, lparam: LPARAM) -> Result<BOOL>;
fn KeyUp(&self, wparam: WPARAM, lparam: LPARAM) -> Result<BOOL>;
fn GetPreservedKey(
&self,
pic: Ref<'_, ITfContext>,
pprekey: *const TF_PRESERVEDKEY,
) -> Result<GUID>;
fn IsPreservedKey(
&self,
rguid: *const GUID,
pprekey: *const TF_PRESERVEDKEY,
) -> Result<BOOL>;
fn PreserveKey(
&self,
tid: u32,
rguid: *const GUID,
prekey: *const TF_PRESERVEDKEY,
pchdesc: &PCWSTR,
cchdesc: u32,
) -> Result<()>;
fn UnpreserveKey(
&self,
rguid: *const GUID,
pprekey: *const TF_PRESERVEDKEY,
) -> Result<()>;
fn SetPreservedKeyDescription(
&self,
rguid: *const GUID,
pchdesc: &PCWSTR,
cchdesc: u32,
) -> Result<()>;
fn GetPreservedKeyDescription(&self, rguid: *const GUID) -> Result<BSTR>;
fn SimulatePreservedKey(
&self,
pic: Ref<'_, ITfContext>,
rguid: *const GUID,
) -> Result<BOOL>;
}
Required Methods§
fn AdviseKeyEventSink( &self, tid: u32, psink: Ref<'_, ITfKeyEventSink>, fforeground: BOOL, ) -> Result<()>
fn UnadviseKeyEventSink(&self, tid: u32) -> Result<()>
fn GetForeground(&self) -> Result<GUID>
fn TestKeyDown(&self, wparam: WPARAM, lparam: LPARAM) -> Result<BOOL>
fn TestKeyUp(&self, wparam: WPARAM, lparam: LPARAM) -> Result<BOOL>
fn KeyDown(&self, wparam: WPARAM, lparam: LPARAM) -> Result<BOOL>
fn KeyUp(&self, wparam: WPARAM, lparam: LPARAM) -> Result<BOOL>
fn GetPreservedKey( &self, pic: Ref<'_, ITfContext>, pprekey: *const TF_PRESERVEDKEY, ) -> Result<GUID>
fn IsPreservedKey( &self, rguid: *const GUID, pprekey: *const TF_PRESERVEDKEY, ) -> Result<BOOL>
fn PreserveKey( &self, tid: u32, rguid: *const GUID, prekey: *const TF_PRESERVEDKEY, pchdesc: &PCWSTR, cchdesc: u32, ) -> Result<()>
fn UnpreserveKey( &self, rguid: *const GUID, pprekey: *const TF_PRESERVEDKEY, ) -> Result<()>
fn SetPreservedKeyDescription( &self, rguid: *const GUID, pchdesc: &PCWSTR, cchdesc: u32, ) -> Result<()>
fn GetPreservedKeyDescription(&self, rguid: *const GUID) -> Result<BSTR>
fn SimulatePreservedKey( &self, pic: Ref<'_, ITfContext>, rguid: *const GUID, ) -> Result<BOOL>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.