Function egui::menu::stationary_menu_button_impl

source ยท
fn stationary_menu_button_impl<'c, R>(
    ui: &mut Ui,
    button: Button<'_>,
    add_contents: Box<dyn FnOnce(&mut Ui) -> R + 'c>,
) -> InnerResponse<Option<R>>
Expand description

Build a top level menu with an image button.

Responds to primary clicks.