diff --git a/examples/menu.rs b/examples/menu.rs
index 8481637..56bcb09 100644
--- a/examples/menu.rs
+++ b/examples/menu.rs
@@ -89,9 +89,11 @@ fn main() {
//window.add_menu("Test", &menu).expect("Unable to add menu");
let mut menu = Menu::new("TestMenu").unwrap();
- let mut item = MenuItem::new("Item", 1).enabled(true);
- menu.add_item(&mut item);
+ menu.add_item(&MenuItem::new("Item 1", 1));
+ menu.add_item(&MenuItem::new("Item 2", 2));
+ menu.add_item(&MenuItem::new("Item 3", 3));
+
let _ = window.add_menu(&menu);
let color_mul = 1;
diff --git a/src/key.rs b/src/key.rs
index 920ab88..cfad8c3 100644
--- a/src/key.rs
+++ b/src/key.rs
@@ -1,5 +1,5 @@
/// Key is used by the get key functions to check if some keys on the keyboard has been pressed
-#[derive(PartialEq, Clone, Copy)]
+#[derive(Debug, PartialEq, Clone, Copy)]
pub enum Key {
Key0 = 0,
Key1 = 1,
diff --git a/src/lib.rs b/src/lib.rs
index 0cc8d87..00f9d34 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -495,6 +495,7 @@ impl Window {
}
}
+
/// Command key on Mac OS
pub const MENU_KEY_COMMAND: usize = 1;
/// Windows key on Windows
@@ -510,6 +511,9 @@ const MENU_ID_SEPARATOR:usize = 0xffffffff;
pub struct Menu(imp::Menu);
+#[derive(Debug)]
+pub struct MenuItemHandle(pub u64);
+
impl Menu {
pub fn new(name: &str) -> Result