[][src]Struct minifb::UnixMenu

pub struct UnixMenu {
    pub name: String,
    pub items: Vec<UnixMenuItem>,
    // some fields omitted
}

Used on POSIX systems (Linux, FreeBSD, etc) as menus aren't supported in a native way there. This structure can be used by calling [#get_posix_menus] on Window.

In version 1.0.0, this struct will be renamed to PosixMenu, but it remains UnixMenu for backwards compatibility reasons.

Fields

name: String

Name of the menu

items: Vec<UnixMenuItem>

All items of the menu.

Trait Implementations

impl Clone for UnixMenu[src]

impl Debug for UnixMenu[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.