Merge pull request #1425 from 0x192/master

Make `overlay::menu` accessible
This commit is contained in:
Héctor Ramón 2022-09-21 13:26:02 +02:00 committed by GitHub
commit f15bc3ca34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View file

@ -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;

16
src/overlay.rs Normal file
View file

@ -0,0 +1,16 @@
//! Display interactive elements on top of other widgets.
/// A generic [`Overlay`].
///
/// This is an alias of an `iced_native` element with a default `Renderer`.
pub type Element<'a, Message, Renderer = crate::Renderer> =
iced_native::overlay::Element<'a, Message, Renderer>;
pub mod menu {
//! Build and show dropdown menus.
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>;
}