[−][src]Struct minifb::UnixMenuItem
Used on POSIX systems (Linux, FreeBSD, etc) as menus aren't supported in a native way 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: MenuItemHandle
Handle of the MenuItem
id: usize
Id of the item (set by the user from the outside and should be reported back when pressed)
label: String
Name of the item
enabled: bool
Set to true if enabled otherwise false
key: Key
Shortcut key
modifier: usize
Modifier for the key (Shift, Ctrl, etc)
Trait Implementations
impl Clone for UnixMenuItem
[src]
fn clone(&self) -> UnixMenuItem
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UnixMenuItem
[src]
Auto Trait Implementations
impl RefUnwindSafe for UnixMenuItem
impl Send for UnixMenuItem
impl Sync for UnixMenuItem
impl Unpin for UnixMenuItem
impl UnwindSafe for UnixMenuItem
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,