Struct iui::menus::Menu [−][src]
pub struct Menu { /* fields omitted */ }
A Menu
represents one of the top-level menus at the top of a window. As that bar is unique
per application, creating a new Menu
shows it on all windows that support displaying menus.
Methods
impl Menu
[src]
impl Menu
pub fn new(_ctx: &UI, name: &str) -> Menu
[src]
pub fn new(_ctx: &UI, name: &str) -> Menu
Creates a new menu with the given name to be displayed in the menubar at the top of the window.
pub fn append_item(&self, name: &str) -> MenuItem
[src]
pub fn append_item(&self, name: &str) -> MenuItem
Adds a new item with the given name to the menu.
pub fn append_check_item(&self, name: &str) -> MenuItem
[src]
pub fn append_check_item(&self, name: &str) -> MenuItem
Adds a new togglable (checkbox) item with the given name to the menu.
pub fn append_separator(&self)
[src]
pub fn append_separator(&self)
Adds a seperator to the menu.