Trait ITfLangBarItemBitmapButton_Impl
pub trait ITfLangBarItemBitmapButton_Impl: ITfLangBarItem_Impl {
// Required methods
fn OnClick(
&self,
click: TfLBIClick,
pt: &POINT,
prcarea: *const RECT,
) -> Result<()>;
fn InitMenu(&self, pmenu: Ref<'_, ITfMenu>) -> Result<()>;
fn OnMenuSelect(&self, wid: u32) -> Result<()>;
fn GetPreferredSize(&self, pszdefault: *const SIZE) -> Result<SIZE>;
fn DrawBitmap(
&self,
bmwidth: i32,
bmheight: i32,
dwflags: u32,
phbmp: *mut HBITMAP,
phbmpmask: *mut HBITMAP,
) -> Result<()>;
fn GetText(&self) -> Result<BSTR>;
}
Required Methods§
fn OnClick( &self, click: TfLBIClick, pt: &POINT, prcarea: *const RECT, ) -> Result<()>
fn InitMenu(&self, pmenu: Ref<'_, ITfMenu>) -> Result<()>
fn OnMenuSelect(&self, wid: u32) -> Result<()>
fn GetPreferredSize(&self, pszdefault: *const SIZE) -> Result<SIZE>
fn DrawBitmap( &self, bmwidth: i32, bmheight: i32, dwflags: u32, phbmp: *mut HBITMAP, phbmpmask: *mut HBITMAP, ) -> Result<()>
fn GetText(&self) -> Result<BSTR>
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.