Struct webview2_com_sys::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<()>
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<'a, Param0: IntoParam<'a, BOOL>>(
&self,
value: Param0
) -> Result<()>
pub unsafe fn IsEnabled(&self, value: *mut BOOL) -> Result<()>
pub unsafe fn SetIsChecked<'a, Param0: IntoParam<'a, BOOL>>(
&self,
value: Param0
) -> Result<()>
pub unsafe fn IsChecked(&self, value: *mut BOOL) -> Result<()>
pub unsafe fn Children(&self) -> Result<ICoreWebView2ContextMenuItemCollection>
pub unsafe fn CustomItemSelected<'a, Param0: IntoParam<'a, ICoreWebView2CustomItemSelectedEventHandler>>(
&self,
eventhandler: Param0,
token: *mut EventRegistrationToken
) -> Result<()>
pub unsafe fn RemoveCustomItemSelected<'a, Param0: IntoParam<'a, EventRegistrationToken>>(
&self,
token: Param0
) -> Result<()>
Trait Implementations
sourceimpl Clone for ICoreWebView2ContextMenuItem
impl Clone for ICoreWebView2ContextMenuItem
sourceimpl Debug for ICoreWebView2ContextMenuItem
impl Debug for ICoreWebView2ContextMenuItem
sourceimpl From<&'_ ICoreWebView2ContextMenuItem> for IUnknown
impl From<&'_ ICoreWebView2ContextMenuItem> for IUnknown
sourcefn from(value: &ICoreWebView2ContextMenuItem) -> Self
fn from(value: &ICoreWebView2ContextMenuItem) -> Self
Converts to this type from the input type.
sourceimpl From<ICoreWebView2ContextMenuItem> for IUnknown
impl From<ICoreWebView2ContextMenuItem> for IUnknown
sourcefn from(value: ICoreWebView2ContextMenuItem) -> Self
fn from(value: ICoreWebView2ContextMenuItem) -> Self
Converts to this type from the input type.
sourceimpl Interface for ICoreWebView2ContextMenuItem
impl Interface for ICoreWebView2ContextMenuItem
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
sourceimpl<T> DefaultType for T where
T: Interface + Clone + PartialEq<T>,
impl<T> DefaultType for T where
T: Interface + Clone + PartialEq<T>,
type DefaultType = Option<T>
sourceunsafe fn from_default(
value: &<T as DefaultType>::DefaultType
) -> Result<T, Error>
unsafe fn from_default(
value: &<T as DefaultType>::DefaultType
) -> Result<T, Error>
Safety
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more