pub struct UICommand(/* private fields */);
Implementations§
§impl UICommand
impl UICommand
pub fn new() -> Result<Self>
pub fn Label(&self) -> Result<HSTRING>
pub fn SetLabel(&self, value: &HSTRING) -> Result<()>
pub fn Invoked(&self) -> Result<UICommandInvokedHandler>
pub fn SetInvoked<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<UICommandInvokedHandler>,
pub fn Id(&self) -> Result<IInspectable>
pub fn SetId<P0>(&self, value: P0) -> Result<()>where
P0: IntoParam<IInspectable>,
pub fn Create(label: &HSTRING) -> Result<UICommand>
pub fn CreateWithHandler<P0>(label: &HSTRING, action: P0) -> Result<UICommand>where
P0: IntoParam<UICommandInvokedHandler>,
pub fn CreateWithHandlerAndId<P0, P1>(
label: &HSTRING,
action: P0,
commandid: P1
) -> Result<UICommand>where
P0: IntoParam<UICommandInvokedHandler>,
P1: IntoParam<IInspectable>,
Trait Implementations§
§impl From<&UICommand> for &IInspectable
impl From<&UICommand> for &IInspectable
§impl From<UICommand> for IInspectable
impl From<UICommand> for IInspectable
§impl Interface for UICommand
impl Interface for UICommand
§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.§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.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read moreimpl Eq for UICommand
impl Send for UICommand
impl StructuralPartialEq for UICommand
impl Sync for UICommand
Auto Trait Implementations§
Blanket Implementations§
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