Trait ITfKeyEventSink_Impl
pub trait ITfKeyEventSink_Impl: IUnknownImpl {
// Required methods
fn OnSetFocus(&self, fforeground: BOOL) -> Result<()>;
fn OnTestKeyDown(
&self,
pic: Ref<'_, ITfContext>,
wparam: WPARAM,
lparam: LPARAM,
) -> Result<BOOL>;
fn OnTestKeyUp(
&self,
pic: Ref<'_, ITfContext>,
wparam: WPARAM,
lparam: LPARAM,
) -> Result<BOOL>;
fn OnKeyDown(
&self,
pic: Ref<'_, ITfContext>,
wparam: WPARAM,
lparam: LPARAM,
) -> Result<BOOL>;
fn OnKeyUp(
&self,
pic: Ref<'_, ITfContext>,
wparam: WPARAM,
lparam: LPARAM,
) -> Result<BOOL>;
fn OnPreservedKey(
&self,
pic: Ref<'_, ITfContext>,
rguid: *const GUID,
) -> Result<BOOL>;
}
Required Methods§
fn OnSetFocus(&self, fforeground: BOOL) -> Result<()>
fn OnTestKeyDown( &self, pic: Ref<'_, ITfContext>, wparam: WPARAM, lparam: LPARAM, ) -> Result<BOOL>
fn OnTestKeyUp( &self, pic: Ref<'_, ITfContext>, wparam: WPARAM, lparam: LPARAM, ) -> Result<BOOL>
fn OnKeyDown( &self, pic: Ref<'_, ITfContext>, wparam: WPARAM, lparam: LPARAM, ) -> Result<BOOL>
fn OnKeyUp( &self, pic: Ref<'_, ITfContext>, wparam: WPARAM, lparam: LPARAM, ) -> Result<BOOL>
fn OnPreservedKey( &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.