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

Method wrap

src/widget/SvgWidget.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13
14void SvgWidget::wrap() {
15 if (svg) {
16 box.size = svg->getSize();
17 }
18 else {
19 box.size = math::Vec();
20 }
21}
22
23
24void SvgWidget::setSvg(std::shared_ptr<window::Svg> svg) {

Callers

nothing calls this directly

Calls 2

VecClass · 0.85
getSizeMethod · 0.45

Tested by

no test coverage detected