pub struct IContextMenu(/* private fields */);
Implementations§
Source§impl IContextMenu
impl IContextMenu
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<()>
Trait Implementations§
Source§impl Clone for IContextMenu
impl Clone for IContextMenu
Source§fn clone(&self) -> IContextMenu
fn clone(&self) -> IContextMenu
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 IContextMenu
impl Debug for IContextMenu
Source§impl From<&IContextMenu> for IUnknown
impl From<&IContextMenu> for IUnknown
Source§fn from(value: &IContextMenu) -> Self
fn from(value: &IContextMenu) -> 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<&IContextMenu3> for IContextMenu
impl From<&IContextMenu3> for IContextMenu
Source§fn from(value: &IContextMenu3) -> Self
fn from(value: &IContextMenu3) -> Self
Converts to this type from the input type.
Source§impl From<IContextMenu> for IUnknown
impl From<IContextMenu> for IUnknown
Source§fn from(value: IContextMenu) -> Self
fn from(value: IContextMenu) -> 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<IContextMenu3> for IContextMenu
impl From<IContextMenu3> for IContextMenu
Source§fn from(value: IContextMenu3) -> Self
fn from(value: IContextMenu3) -> Self
Converts to this type from the input type.
Source§impl Interface for IContextMenu
impl Interface for IContextMenu
const IID: Guid
type Vtable = IContextMenu_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 IContextMenu
impl PartialEq for IContextMenu
impl Eq for IContextMenu
impl StructuralPartialEq for IContextMenu
Auto Trait Implementations§
impl Freeze for IContextMenu
impl RefUnwindSafe for IContextMenu
impl !Send for IContextMenu
impl !Sync for IContextMenu
impl Unpin for IContextMenu
impl UnwindSafe for IContextMenu
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