Function egui::menu::submenu_button
source ยท pub(crate) fn submenu_button<R>(
ui: &mut Ui,
parent_state: Arc<RwLock<MenuState>>,
title: impl Into<WidgetText>,
add_contents: impl FnOnce(&mut Ui) -> R,
) -> InnerResponse<Option<R>>
Expand description
Construct a nested sub menu in another menu.
Opens on hover.
Returns None
if the menu is not open.