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

Method zoomToModules

src/app/RackScrollWidget.cpp:74–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73
74void RackScrollWidget::zoomToModules() {
75 widget::Widget* moduleContainer = rackWidget->getModuleContainer();
76 math::Rect bound = moduleContainer->getChildrenBoundingBox();
77 zoomToBound(bound);
78}
79
80
81void RackScrollWidget::zoomToBound(math::Rect bound) {

Callers 2

onHoverKeyMethod · 0.80
onActionMethod · 0.80

Calls 2

getModuleContainerMethod · 0.80

Tested by

no test coverage detected