Expand description
Helpers for zooming the whole GUI of an app (changing Context::pixels_per_point
.
Modulesยง
- The suggested keyboard shortcuts for global gui zooming.
Constantsยง
- MAX_ZOOM_FACTOR ๐
- MIN_ZOOM_FACTOR ๐
Functionsยง
- Make everything larger by increasing
Context::zoom_factor
. - Show buttons for zooming the ui.
- Make everything smaller by decreasing
Context::zoom_factor
. - zoom_with_keyboard ๐Let the user scale the GUI (change
Context::zoom_factor
) by pressing Cmd+Plus, Cmd+Minus or Cmd+0, just like in a browser.