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

Method getRelativeZoom

src/widget/Widget.cpp:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134
135float Widget::getRelativeZoom(Widget* ancestor) {
136 if (this == ancestor)
137 return 1.f;
138 if (!parent)
139 return 1.f;
140 return parent->getRelativeZoom(ancestor);
141}
142
143
144math::Rect Widget::getViewport(math::Rect r) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected