summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/lib.rs1
-rw-r--r--src/overlay.rs10
2 files changed, 11 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 100b9f77..4276f86a 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -174,6 +174,7 @@ pub mod clipboard;
pub mod executor;
pub mod keyboard;
pub mod mouse;
+pub mod overlay;
pub mod settings;
pub mod time;
pub mod widget;
diff --git a/src/overlay.rs b/src/overlay.rs
new file mode 100644
index 00000000..009cb71f
--- /dev/null
+++ b/src/overlay.rs
@@ -0,0 +1,10 @@
+//! Build and show dropdown menus.
+///
+/// This is an alias of an `iced_native` element with a default `Renderer`.
+pub mod menu {
+ pub use iced_native::overlay::menu::{Appearance, State, StyleSheet};
+
+ /// A widget that produces a message when clicked.
+ pub type Menu<'a, Message, Renderer = crate::Renderer> =
+ iced_native::overlay::Menu<'a, Message, Renderer>;
+}