Struct minifb::Menu [] [src]

pub struct Menu(_);

Menu holds info for menus

Methods

impl Menu
[src]

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