We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
egui::menu
1 parent 6e34152 commit 209e818Copy full SHA for 209e818
crates/egui/src/menu.rs
@@ -1,5 +1,5 @@
1
#![allow(deprecated)]
2
-//! Menu bar functionality (very basic so far).
+//! Deprecated menu API - Use [`crate::containers::menu`] instead.
3
//!
4
//! Usage:
5
//! ```
@@ -88,6 +88,7 @@ fn set_menu_style(style: &mut Style) {
88
/// The menu bar goes well in a [`crate::TopBottomPanel::top`],
89
/// but can also be placed in a [`crate::Window`].
90
/// In the latter case you may want to wrap it in [`Frame`].
91
+#[deprecated = "Use `crate::containers::menu::Bar` instead"]
92
pub fn bar<R>(ui: &mut Ui, add_contents: impl FnOnce(&mut Ui) -> R) -> InnerResponse<R> {
93
ui.horizontal(|ui| {
94
set_menu_style(ui.style_mut());
0 commit comments