Struct minifb::Menu

source · []
pub struct Menu(_);
Expand description

Menu holds info for menus

Implementations

Create a new menu. Returns error if failed

Destroys a menu. Currently not implemented

Adds a sub menu to the current menu

Adds a menu separator

Adds an item to the menu

Adds an item to the menu. Notice that you need to call “build” to finish the add

Examples
menu.add_item("test", 1).shortcut(Key::A, 0).build()

Removes an item from the menu

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.