pub trait ICoreWebView2ContextMenuItem_Impl: IUnknownImpl {
Show 13 methods
// Required methods
fn Name(&self) -> Result<PWSTR>;
fn Label(&self) -> Result<PWSTR>;
fn CommandId(&self) -> Result<i32>;
fn ShortcutKeyDescription(&self) -> Result<PWSTR>;
fn Icon(&self) -> Result<IStream>;
fn Kind(&self) -> Result<COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND>;
fn SetIsEnabled(&self, value: BOOL) -> Result<()>;
fn IsEnabled(&self) -> Result<BOOL>;
fn SetIsChecked(&self, value: BOOL) -> Result<()>;
fn IsChecked(&self) -> Result<BOOL>;
fn Children(&self) -> Result<ICoreWebView2ContextMenuItemCollection>;
fn CustomItemSelected(
&self,
eventhandler: Ref<'_, ICoreWebView2CustomItemSelectedEventHandler>,
) -> Result<i64>;
fn RemoveCustomItemSelected(&self, token: i64) -> Result<()>;
}Required Methods§
fn Name(&self) -> Result<PWSTR>
fn Label(&self) -> Result<PWSTR>
fn CommandId(&self) -> Result<i32>
fn ShortcutKeyDescription(&self) -> Result<PWSTR>
fn Icon(&self) -> Result<IStream>
fn Kind(&self) -> Result<COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND>
fn SetIsEnabled(&self, value: BOOL) -> Result<()>
fn IsEnabled(&self) -> Result<BOOL>
fn SetIsChecked(&self, value: BOOL) -> Result<()>
fn IsChecked(&self) -> Result<BOOL>
fn Children(&self) -> Result<ICoreWebView2ContextMenuItemCollection>
fn CustomItemSelected( &self, eventhandler: Ref<'_, ICoreWebView2CustomItemSelectedEventHandler>, ) -> Result<i64>
fn RemoveCustomItemSelected(&self, token: i64) -> Result<()>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".