Function egui::menu::bar

source ยท
pub fn bar<R>(
    ui: &mut Ui,
    add_contents: impl FnOnce(&mut Ui) -> R,
) -> InnerResponse<R>
Expand description

The menu bar goes well in a crate::TopBottomPanel::top, but can also be placed in a crate::Window. In the latter case you may want to wrap it in Frame.