Skip to content

Commit

Permalink
Merge pull request #1425 from 0x192/master
Browse files Browse the repository at this point in the history
Make `overlay::menu` accessible
  • Loading branch information
hecrj authored Sep 21, 2022
2 parents a22cdc9 + 7a35d1c commit f15bc3c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
16 changes: 16 additions & 0 deletions src/overlay.rs
Original file line number Diff line number Diff line change
@@ -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>;
}

0 comments on commit f15bc3c

Please sign in to comment.