Function egui::menu::menu_custom_button

source ยท
pub fn menu_custom_button<R>(
    ui: &mut Ui,
    button: Button<'_>,
    add_contents: impl FnOnce(&mut Ui) -> R,
) -> InnerResponse<Option<R>>
Expand description

Construct a top level menu with a custom button in a menu bar.

Responds to primary clicks.

Returns None if the menu is not open.