Struct minifb::UnixMenuItem [] [src]

pub struct UnixMenuItem {
    pub sub_menu: Option<Box<UnixMenu>>,
    pub handle: MenuItemHandle,
    pub id: usize,
    pub label: String,
    pub enabled: bool,
    pub key: Key,
    pub modifier: usize,
}

Used for on Unix (Linux, FreeBSD, etc) as menus aren't supported in a native where there. This structure holds info for each item in a #UnixMenu

Fields

Set to a menu if there is a Item is a sub_menu otherwise None

Handle of the MenuItem

Id of the item (set by the user from the outside and should be reported back when pressed)

Name of the item

Set to true if enabled otherwise false

Shortcut key

Modifier for the key (Shift, Ctrl, etc)

Trait Implementations

impl Debug for UnixMenuItem
[src]

Formats the value using the given formatter.

impl Clone for UnixMenuItem
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more