Function jumpy::prelude::egui::gui_zoom::zoom_menu_buttons

pub fn zoom_menu_buttons(ui: &mut Ui, native_pixels_per_point: Option<f32>)
Expand description

Show buttons for zooming the ui.

This is meant to be called from within a menu (See Ui::menu_button).

When using eframe, you want to call this as:

// On web, the browser controls the gui zoom.
if !frame.is_web() {
    ui.menu_button("View", |ui| {
        egui::gui_zoom::zoom_menu_buttons(
            ui,
            frame.info().native_pixels_per_point,
        );
    });
}