-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1425 from 0x192/master
Make `overlay::menu` accessible
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>; | ||
} |