S or /

SourceModule gui_zoom

Helpers for zooming the whole GUI of an app (changing Context.pixels_per_point).

Classes§

Functions§

zoom_in

Make everything larger by increasing Context.zoom_factor.

zoom_menu_buttons

Show buttons for zooming the ui.

zoom_out

Make everything smaller by decreasing Context.zoom_factor.

SourceFunction zoom_in§

from egui import zoom_in
def zoom_in(ctx: Context) -> None

Make everything larger by increasing Context.zoom_factor.

SourceFunction zoom_menu_buttons§

from egui import zoom_menu_buttons
def zoom_menu_buttons(ui: Ui) -> None

Show buttons for zooming the ui.

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

SourceFunction zoom_out§

from egui import zoom_out
def zoom_out(ctx: Context) -> None

Make everything smaller by decreasing Context.zoom_factor.

Constants§

Re-exports§