Struct webview2_com::Microsoft::Web::WebView2::Win32::ICoreWebView2ContextMenuItem
source · [−]#[repr(transparent)]pub struct ICoreWebView2ContextMenuItem(_);
Implementations
sourceimpl ICoreWebView2ContextMenuItem
impl ICoreWebView2ContextMenuItem
pub unsafe fn Name(&self, value: *mut PWSTR) -> Result<(), Error>
pub unsafe fn Label(&self, value: *mut PWSTR) -> Result<(), Error>
pub unsafe fn CommandId(&self, value: *mut i32) -> Result<(), Error>
pub unsafe fn ShortcutKeyDescription(
&self,
value: *mut PWSTR
) -> Result<(), Error>
pub unsafe fn Icon(&self) -> Result<IStream, Error>
pub unsafe fn Kind(
&self,
value: *mut COREWEBVIEW2_CONTEXT_MENU_ITEM_KIND
) -> Result<(), Error>
pub unsafe fn SetIsEnabled<P0>(&self, value: P0) -> Result<(), Error> where
P0: Into<BOOL>,
pub unsafe fn IsEnabled(&self, value: *mut BOOL) -> Result<(), Error>
pub unsafe fn SetIsChecked<P0>(&self, value: P0) -> Result<(), Error> where
P0: Into<BOOL>,
pub unsafe fn IsChecked(&self, value: *mut BOOL) -> Result<(), Error>
pub unsafe fn Children(
&self
) -> Result<ICoreWebView2ContextMenuItemCollection, Error>
pub unsafe fn add_CustomItemSelected<'a, P0>(
&self,
eventhandler: P0,
token: *mut EventRegistrationToken
) -> Result<(), Error> where
P0: Into<InParam<'a, ICoreWebView2CustomItemSelectedEventHandler>>,
pub unsafe fn remove_CustomItemSelected(
&self,
token: EventRegistrationToken
) -> Result<(), Error>
Trait Implementations
sourceimpl Clone for ICoreWebView2ContextMenuItem
impl Clone for ICoreWebView2ContextMenuItem
sourcefn clone(&self) -> ICoreWebView2ContextMenuItem
fn clone(&self) -> ICoreWebView2ContextMenuItem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ICoreWebView2ContextMenuItem
impl Debug for ICoreWebView2ContextMenuItem
sourceimpl Interface for ICoreWebView2ContextMenuItem
impl Interface for ICoreWebView2ContextMenuItem
sourceconst IID: GUID = ::windows::core::GUID::from_u128(163397888494305923931174274742614715493)
const IID: GUID = ::windows::core::GUID::from_u128(163397888494305923931174274742614715493)
A unique identifier representing this interface.
sourceimpl PartialEq<ICoreWebView2ContextMenuItem> for ICoreWebView2ContextMenuItem
impl PartialEq<ICoreWebView2ContextMenuItem> for ICoreWebView2ContextMenuItem
sourcefn eq(&self, other: &ICoreWebView2ContextMenuItem) -> bool
fn eq(&self, other: &ICoreWebView2ContextMenuItem) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for ICoreWebView2ContextMenuItem
Auto Trait Implementations
impl RefUnwindSafe for ICoreWebView2ContextMenuItem
impl !Send for ICoreWebView2ContextMenuItem
impl !Sync for ICoreWebView2ContextMenuItem
impl Unpin for ICoreWebView2ContextMenuItem
impl UnwindSafe for ICoreWebView2ContextMenuItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more