Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
14
void SvgWidget::wrap() {
15
if (svg) {
16
box.size = svg->getSize();
17
}
18
else {
19
box.size = math::Vec();
20
}
21
}
22
23
24
void SvgWidget::setSvg(std::shared_ptr<window::Svg> svg) {
Callers
nothing calls this directly
Calls
2
Vec
Class · 0.85
getSize
Method · 0.45
Tested by
no test coverage detected