Function egui::menu::menu_button
source · pub fn menu_button<R>(
ui: &mut Ui,
title: impl Into<WidgetText>,
add_contents: impl FnOnce(&mut Ui) -> R
) -> InnerResponse<Option<R>>
Expand description
Construct a top level menu in a menu bar. This would be e.g. “File”, “Edit” etc.
Responds to primary clicks.
Returns None
if the menu is not open.