pub struct Command {
pub id: u32,
pub icon: u32,
pub label: &'static str,
pub key: u16,
pub mods: u8,
pub flags: u8,
}Expand description
CMD record: one row of the app’s command table (AppDesc::cmds)
Fields§
§id: u32command id (!= 0); also the widget id of cmd_button
icon: u32IC_* code point or 0
label: &'static strUTF-8 label, ‘&’ marks the mnemonic (“&&” = ‘&’)
key: u16accelerator key VK_* (0 = none)
mods: u8MOD_SHIFT | MOD_CTRL | MOD_ALT
flags: u8initial CF_* state
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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