Trait kas_widgets::Menu[][src]

pub trait Menu: Widget {
    fn menu_is_open(&self) -> bool { ... }
fn set_menu_path(
        &mut self,
        _mgr: &mut Manager<'_>,
        _target: Option<WidgetId>
    ) { ... } }
Expand description

Trait governing menus, sub-menus and menu-entries

Provided methods

Report whether one’s own menu is open

By default, this is false.

Open or close a sub-menu, including parents

Given Some(id) = target, the sub-menu with this id should open its menu; if it has child-menus, these should close; and if any ancestors are menus, these should open.

target == None implies that all menus should close.

Trait Implementations

Boxing method

Implementations on Foreign Types

Implementors

A separator is a valid menu widget