MCPcopy 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
1136math::Vec ModuleWidget::getGridSize() {
1137 return (getSize() / RACK_GRID_SIZE).round();
1138}
1139
1140math::Rect ModuleWidget::getGridBox() {
1141 return math::Rect(getGridPosition(), getGridSize());

Callers 2

setModulePosForceMethod · 0.80
squeezeModulePosMethod · 0.80

Calls 1

roundMethod · 0.80

Tested by

no test coverage detected