👎Deprecated: Use
egui::containers::menu
insteadExpand description
Deprecated menu API - Use crate::containers::menu
instead.
Usage:
fn show_menu(ui: &mut egui::Ui) {
use egui::{menu, Button};
menu::bar(ui, |ui| {
ui.menu_button("File", |ui| {
if ui.button("Open").clicked() {
// …
}
});
});
}
Structs§
- BarState
Deprecated - What is saved between frames.
- Menu
Root Deprecated - Menu root associated with an Id from a Response
- Menu
Root Manager Deprecated - Stores the state for the context menu.
- Menu
State Deprecated - Components of menu state, public for advanced usage.
- SubMenu
Deprecated - SubMenu
Button Deprecated
Enums§
- Menu
Response Deprecated
Functions§
- bar
Deprecated - The menu bar goes well in a
crate::TopBottomPanel::top
, but can also be placed in acrate::Window
. In the latter case you may want to wrap it inFrame
. - context_
menu Deprecated - Response to secondary clicks (right-clicks) by showing the given menu.
- context_
menu_ opened Deprecated - Returns
true
if the context menu is opened for this widget. - menu_
button Deprecated - Construct a top level menu in a menu bar. This would be e.g. “File”, “Edit” etc.
- menu_
custom_ button Deprecated - Construct a top level menu with a custom button in a menu bar.
- menu_
image_ button Deprecated - Construct a top level menu with an image in a menu bar. This would be e.g. “File”, “Edit” etc.
- submenu_
button Deprecated - Construct a nested sub menu in another menu.