Trait webview2_com_sys::Microsoft::Web::WebView2::Win32::ICoreWebView2ContextMenuItem_Impl
source · [−]pub trait ICoreWebView2ContextMenuItem_Impl: Sized {
Show 13 methods
fn Name(&self, value: *mut PWSTR) -> Result<()>;
fn Label(&self, value: *mut PWSTR) -> Result<()>;
fn CommandId(&self, value: *mut i32) -> Result<()>;
fn ShortcutKeyDescription(&self, value: *mut PWSTR) -> Result<()>;
fn Icon(&self) -> Result<IStream>;
fn Kind(&self, value: *mut COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND) -> Result<()>;
fn SetIsEnabled(&self, value: BOOL) -> Result<()>;
fn IsEnabled(&self, value: *mut BOOL) -> Result<()>;
fn SetIsChecked(&self, value: BOOL) -> Result<()>;
fn IsChecked(&self, value: *mut BOOL) -> Result<()>;
fn Children(&self) -> Result<ICoreWebView2ContextMenuItemCollection>;
fn add_CustomItemSelected(
&self,
eventhandler: &Option<ICoreWebView2CustomItemSelectedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<()>;
fn remove_CustomItemSelected(
&self,
token: &EventRegistrationToken
) -> Result<()>;
}
Required Methods
source
fn SetIsEnabled(&self, value: BOOL) -> Result<()>
source
fn SetIsChecked(&self, value: BOOL) -> Result<()>
source
fn Children(&self) -> Result<ICoreWebView2ContextMenuItemCollection>
sourcefn add_CustomItemSelected(
fn add_CustomItemSelected(
&self,
eventhandler: &Option<ICoreWebView2CustomItemSelectedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<()>
source