Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
51
void RackScrollWidget::setGridOffset(math::Vec gridOffset) {
52
offset = (gridOffset * RACK_GRID_SIZE + RACK_OFFSET) * zoomWidget->getZoom();
53
}
54
55
56
float RackScrollWidget::getZoom() {
Callers
1
fromJson
Method · 0.80
Calls
1
getZoom
Method · 0.45
Tested by
no test coverage detected