improv(menu): simplify menu construction.
- Added `MenuAction` trait to call the `message` method on button press. - Added two new methods to construct a MenuTree. - Added MenuItem enum to represent an action or a separator in a MenuTree. - Added menu example. - Moved Modifier enum and KeyBind struct to libcosmic. - Moved menu_button macro to libcosmic.
This commit is contained in:
parent
9e6d94c7eb
commit
0b47efe1de
6 changed files with 346 additions and 0 deletions
|
|
@ -54,7 +54,9 @@
|
|||
//! ```
|
||||
//!
|
||||
|
||||
pub mod action;
|
||||
mod flex;
|
||||
pub mod key_bind;
|
||||
pub mod menu_bar;
|
||||
mod menu_inner;
|
||||
pub mod menu_tree;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue