Merge pull request #1425 from 0x192/master
Make `overlay::menu` accessible
This commit is contained in:
commit
f15bc3ca34
2 changed files with 17 additions and 0 deletions
|
|
@ -174,6 +174,7 @@ pub mod clipboard;
|
||||||
pub mod executor;
|
pub mod executor;
|
||||||
pub mod keyboard;
|
pub mod keyboard;
|
||||||
pub mod mouse;
|
pub mod mouse;
|
||||||
|
pub mod overlay;
|
||||||
pub mod settings;
|
pub mod settings;
|
||||||
pub mod time;
|
pub mod time;
|
||||||
pub mod widget;
|
pub mod widget;
|
||||||
|
|
|
||||||
16
src/overlay.rs
Normal file
16
src/overlay.rs
Normal 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>;
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue