pub trait Menu {
// Required methods
fn sub_menu(&self, _1: Option<&MenuEntry>, _2: &mut SharedVector<MenuEntry>);
fn activate(&self, _1: &MenuEntry);
}
Expand description
Interface for native menu and menubar
Note: Was generated from the #[vtable]
macro on MenuVTable
Required Methods§
Return the list of items for the sub menu (or the main menu of parent is None)