| 766 | } |
| 767 | |
| 768 | void RackWidget::setModulePosNearest(ModuleWidget* mw, math::Vec pos) { |
| 769 | eachNearestGridPos(pos, [&](math::Vec pos) -> bool { |
| 770 | return requestModulePos(mw, pos); |
| 771 | }); |
| 772 | } |
| 773 | |
| 774 | static bool compareModuleLeft(ModuleWidget* a, ModuleWidget* b) { |
| 775 | return a->getGridBox().getLeft() < b->getGridBox().getLeft(); |
no test coverage detected