MCPcopy Create free account
hub / github.com/VCVRack/Rack / setGridOffset

Method setGridOffset

src/app/RackScrollWidget.cpp:51–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50
51void RackScrollWidget::setGridOffset(math::Vec gridOffset) {
52 offset = (gridOffset * RACK_GRID_SIZE + RACK_OFFSET) * zoomWidget->getZoom();
53}
54
55
56float RackScrollWidget::getZoom() {

Callers 1

fromJsonMethod · 0.80

Calls 1

getZoomMethod · 0.45

Tested by

no test coverage detected