Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VCVRack/Rack
/ getGridSize
Method
getGridSize
src/app/ModuleWidget.cpp:1136–1138 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1134
}
1135
1136
math::Vec ModuleWidget::getGridSize() {
1137
return (getSize() / RACK_GRID_SIZE).round();
1138
}
1139
1140
math::Rect ModuleWidget::getGridBox() {
1141
return math::Rect(getGridPosition(), getGridSize());
Callers
2
setModulePosForce
Method · 0.80
squeezeModulePos
Method · 0.80
Calls
1
round
Method · 0.80
Tested by
no test coverage detected