i_slint_core::window

Trait Menu

Source
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§

Source

fn sub_menu(&self, _1: Option<&MenuEntry>, _2: &mut SharedVector<MenuEntry>)

Return the list of items for the sub menu (or the main menu of parent is None)

Source

fn activate(&self, _1: &MenuEntry)

Handler when the menu entry is activated

Implementors§