pub struct AppDesc {
pub title: &'static str,
pub flags: u32,
pub w: u16,
pub h: u16,
pub min_w: u16,
pub min_h: u16,
pub accent: u32,
pub cmds: &'static [Command],
pub menubar: &'static [Mi],
}Expand description
the app descriptor (APP_DESC): title, AF_* flags, sizes in DIP, accent 0xRRGGBB. Write
AppDesc { title: "..", w: .., ..AppDesc::NONE } so later fields keep their defaults.
Fields§
§title: &'static str§flags: u32§w: u16§h: u16§min_w: u16§min_h: u16§accent: u32§cmds: &'static [Command](ui-popup) the command table (AD_CMDS: ids, labels, icons, accelerators, CF_* flags)
(ui-popup) the menu bar of menubar(None) (AD_MENUBAR: Mi::Menu records)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for AppDesc
impl Freeze for AppDesc
impl RefUnwindSafe for AppDesc
impl Send for AppDesc
impl Sync for AppDesc
impl Unpin for AppDesc
impl UnsafeUnpin for AppDesc
impl UnwindSafe for AppDesc
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