MCPcopy Create free account
hub / github.com/cogentcore/core / stepZoom

Method stepZoom

core/renderwindow.go:233–235  ·  view source on GitHub ↗

stepZoom calls [SetZoom] with the current zoom plus 10 times the given number of steps.

(steps float32)

Source from the content-addressed store, hash-verified

231
232// stepZoom calls [SetZoom] with the current zoom plus 10 times the given number of steps.
233func (w *renderWindow) stepZoom(steps float32) {
234 w.setZoom(AppearanceSettings.Zoom + 10*steps)
235}
236
237// setZoom sets [AppearanceSettingsData.Zoom] to the given value and then triggers
238// necessary updating and makes a snackbar.

Callers 3

setZoomMethod · 0.95
handleWidgetMagnifyMethod · 0.80
managerKeyChordEventsMethod · 0.80

Calls 1

setZoomMethod · 0.95

Tested by

no test coverage detected