Function egui::menu::menu_image_button

source ·
pub fn menu_image_button<R>(
    ui: &mut Ui,
    image_button: ImageButton<'_>,
    add_contents: impl FnOnce(&mut Ui) -> R,
) -> InnerResponse<Option<R>>
👎Deprecated: Use menu_custom_button instead
Expand description

Construct a top level menu with an image in a menu bar. This would be e.g. “File”, “Edit” etc.

Responds to primary clicks.

Returns None if the menu is not open.