[−][src]Trait kas::widget::Menu
Trait governing menus, sub-menus and menu-entries
Provided methods
pub fn menu_is_open(&self) -> bool
[src]
Report whether one's own menu is open
By default, this is false
.
pub fn menu_path(&mut self, _mgr: &mut Manager<'_>, _target: Option<WidgetId>)
[src]
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
Implementations on Foreign Types
impl<M: 'static> Menu for Box<dyn Menu<Msg = M>>
[src]
pub fn menu_is_open(&self) -> bool
[src]
pub fn menu_path(&mut self, mgr: &mut Manager<'_>, target: Option<WidgetId>)
[src]
Implementors
impl<D: Directional, W: Menu> Menu for MenuBar<D, W>
[src]
impl<D: Directional, W: Menu> Menu for SubMenu<D, W>
[src]
pub fn menu_is_open(&self) -> bool
[src]
pub fn menu_path(&mut self, mgr: &mut Manager<'_>, target: Option<WidgetId>)
[src]
impl<M: Clone + Debug> Menu for MenuEntry<M>
[src]
impl<M: From<VoidMsg>> Menu for MenuToggle<M>
[src]
impl<M: Debug> Menu for Separator<M>
[src]
A separator is a valid menu widget