pub trait ICoreWebView2ContextMenuItem_Impl: Sized {
Show 13 methods
// Required methods
fn Name(&self, value: *mut PWSTR) -> Result<(), Error>;
fn Label(&self, value: *mut PWSTR) -> Result<(), Error>;
fn CommandId(&self, value: *mut i32) -> Result<(), Error>;
fn ShortcutKeyDescription(&self, value: *mut PWSTR) -> Result<(), Error>;
fn Icon(&self) -> Result<IStream, Error>;
fn Kind(
&self,
value: *mut COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND,
) -> Result<(), Error>;
fn SetIsEnabled(&self, value: BOOL) -> Result<(), Error>;
fn IsEnabled(&self, value: *mut BOOL) -> Result<(), Error>;
fn SetIsChecked(&self, value: BOOL) -> Result<(), Error>;
fn IsChecked(&self, value: *mut BOOL) -> Result<(), Error>;
fn Children(&self) -> Result<ICoreWebView2ContextMenuItemCollection, Error>;
fn add_CustomItemSelected(
&self,
eventhandler: Option<&ICoreWebView2CustomItemSelectedEventHandler>,
token: *mut EventRegistrationToken,
) -> Result<(), Error>;
fn remove_CustomItemSelected(
&self,
token: &EventRegistrationToken,
) -> Result<(), Error>;
}
Required Methods§
fn Name(&self, value: *mut PWSTR) -> Result<(), Error>
fn Label(&self, value: *mut PWSTR) -> Result<(), Error>
fn CommandId(&self, value: *mut i32) -> Result<(), Error>
fn ShortcutKeyDescription(&self, value: *mut PWSTR) -> Result<(), Error>
fn Icon(&self) -> Result<IStream, Error>
fn Kind( &self, value: *mut COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND, ) -> Result<(), Error>
fn SetIsEnabled(&self, value: BOOL) -> Result<(), Error>
fn IsEnabled(&self, value: *mut BOOL) -> Result<(), Error>
fn SetIsChecked(&self, value: BOOL) -> Result<(), Error>
fn IsChecked(&self, value: *mut BOOL) -> Result<(), Error>
fn Children(&self) -> Result<ICoreWebView2ContextMenuItemCollection, Error>
fn add_CustomItemSelected( &self, eventhandler: Option<&ICoreWebView2CustomItemSelectedEventHandler>, token: *mut EventRegistrationToken, ) -> Result<(), Error>
fn remove_CustomItemSelected( &self, token: &EventRegistrationToken, ) -> Result<(), Error>
Object Safety§
This trait is not object safe.