Struct webview2_com_sys::Microsoft::Web::WebView2::Win32::ICoreWebView2ContextMenuItem
source · #[repr(transparent)]pub struct ICoreWebView2ContextMenuItem(_);
Implementations§
source§impl ICoreWebView2ContextMenuItem
impl ICoreWebView2ContextMenuItem
pub unsafe fn Name(&self, value: *mut PWSTR) -> Result<()>
pub unsafe fn Label(&self, value: *mut PWSTR) -> Result<()>
pub unsafe fn CommandId(&self, value: *mut i32) -> Result<()>
pub unsafe fn ShortcutKeyDescription(&self, value: *mut PWSTR) -> Result<()>
pub unsafe fn Icon(&self) -> Result<IStream>
pub unsafe fn Kind( &self, value: *mut COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND ) -> Result<()>
pub unsafe fn SetIsEnabled<P0>(&self, value: P0) -> Result<()>where P0: Into<BOOL>,
pub unsafe fn IsEnabled(&self, value: *mut BOOL) -> Result<()>
pub unsafe fn SetIsChecked<P0>(&self, value: P0) -> Result<()>where P0: Into<BOOL>,
pub unsafe fn IsChecked(&self, value: *mut BOOL) -> Result<()>
pub unsafe fn Children(&self) -> Result<ICoreWebView2ContextMenuItemCollection>
pub unsafe fn add_CustomItemSelected<P0>( &self, eventhandler: P0, token: *mut EventRegistrationToken ) -> Result<()>where P0: Into<InParam<ICoreWebView2CustomItemSelectedEventHandler>>,
pub unsafe fn remove_CustomItemSelected( &self, token: EventRegistrationToken ) -> Result<()>
Trait Implementations§
source§impl Clone for ICoreWebView2ContextMenuItem
impl Clone for ICoreWebView2ContextMenuItem
source§impl Debug for ICoreWebView2ContextMenuItem
impl Debug for ICoreWebView2ContextMenuItem
source§impl From<&ICoreWebView2ContextMenuItem> for &IUnknown
impl From<&ICoreWebView2ContextMenuItem> for &IUnknown
source§fn from(value: &ICoreWebView2ContextMenuItem) -> Self
fn from(value: &ICoreWebView2ContextMenuItem) -> Self
Converts to this type from the input type.
source§impl From<&ICoreWebView2ContextMenuItem> for IUnknown
impl From<&ICoreWebView2ContextMenuItem> for IUnknown
source§fn from(value: &ICoreWebView2ContextMenuItem) -> Self
fn from(value: &ICoreWebView2ContextMenuItem) -> Self
Converts to this type from the input type.
source§impl From<ICoreWebView2ContextMenuItem> for IUnknown
impl From<ICoreWebView2ContextMenuItem> for IUnknown
source§fn from(value: ICoreWebView2ContextMenuItem) -> Self
fn from(value: ICoreWebView2ContextMenuItem) -> Self
Converts to this type from the input type.
source§impl Interface for ICoreWebView2ContextMenuItem
impl Interface for ICoreWebView2ContextMenuItem
source§impl PartialEq<ICoreWebView2ContextMenuItem> for ICoreWebView2ContextMenuItem
impl PartialEq<ICoreWebView2ContextMenuItem> for ICoreWebView2ContextMenuItem
source§impl Vtable for ICoreWebView2ContextMenuItem
impl Vtable for ICoreWebView2ContextMenuItem
type Vtable = ICoreWebView2ContextMenuItem_Vtbl
source§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.source§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.