pub struct IContextMenu2(/* private fields */);
Implementations§
Source§impl IContextMenu2
impl IContextMenu2
pub unsafe fn QueryContextMenu<'a>( &self, hmenu: impl IntoParam<'a, HMENU>, indexmenu: u32, idcmdfirst: u32, idcmdlast: u32, uflags: u32, ) -> Result<()>
pub unsafe fn InvokeCommand(&self, pici: *mut CMINVOKECOMMANDINFO) -> Result<()>
pub unsafe fn GetCommandString( &self, idcmd: usize, utype: u32, preserved: *mut u32, pszname: PSTR, cchmax: u32, ) -> Result<()>
pub unsafe fn HandleMenuMsg<'a>( &self, umsg: u32, wparam: impl IntoParam<'a, WPARAM>, lparam: impl IntoParam<'a, LPARAM>, ) -> Result<()>
Trait Implementations§
Source§impl Clone for IContextMenu2
impl Clone for IContextMenu2
Source§fn clone(&self) -> IContextMenu2
fn clone(&self) -> IContextMenu2
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IContextMenu2
impl Debug for IContextMenu2
Source§impl From<&IContextMenu2> for IContextMenu
impl From<&IContextMenu2> for IContextMenu
Source§fn from(value: &IContextMenu2) -> Self
fn from(value: &IContextMenu2) -> Self
Converts to this type from the input type.
Source§impl From<&IContextMenu2> for IUnknown
impl From<&IContextMenu2> for IUnknown
Source§fn from(value: &IContextMenu2) -> Self
fn from(value: &IContextMenu2) -> Self
Converts to this type from the input type.
Source§impl From<&IContextMenu3> for IContextMenu2
impl From<&IContextMenu3> for IContextMenu2
Source§fn from(value: &IContextMenu3) -> Self
fn from(value: &IContextMenu3) -> Self
Converts to this type from the input type.
Source§impl From<IContextMenu2> for IContextMenu
impl From<IContextMenu2> for IContextMenu
Source§fn from(value: IContextMenu2) -> Self
fn from(value: IContextMenu2) -> Self
Converts to this type from the input type.
Source§impl From<IContextMenu2> for IUnknown
impl From<IContextMenu2> for IUnknown
Source§fn from(value: IContextMenu2) -> Self
fn from(value: IContextMenu2) -> Self
Converts to this type from the input type.
Source§impl From<IContextMenu3> for IContextMenu2
impl From<IContextMenu3> for IContextMenu2
Source§fn from(value: IContextMenu3) -> Self
fn from(value: IContextMenu3) -> Self
Converts to this type from the input type.
Source§impl Interface for IContextMenu2
impl Interface for IContextMenu2
const IID: Guid
type Vtable = IContextMenu2_abi
Source§unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
Safety Read more
Source§unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
Safety Read more
Source§impl PartialEq for IContextMenu2
impl PartialEq for IContextMenu2
impl Eq for IContextMenu2
impl StructuralPartialEq for IContextMenu2
Auto Trait Implementations§
impl Freeze for IContextMenu2
impl RefUnwindSafe for IContextMenu2
impl !Send for IContextMenu2
impl !Sync for IContextMenu2
impl Unpin for IContextMenu2
impl UnwindSafe for IContextMenu2
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
type DefaultType = Option<T>
Source§fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
Converts from
Self::DefaultType
to Result<T>
.Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
fn drop_param(_: &mut Param<'_, Self>)
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more