Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/VCVRack/Rack
/ setSize
Method
setSize
src/widget/Widget.cpp:49–56 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
47
48
49
void Widget::setSize(math::Vec size) {
50
if (size.equals(box.size))
51
return;
52
box.size = size;
53
// Dispatch Resize event
54
ResizeEvent eResize;
55
onResize(eResize);
56
}
57
58
59
widget::Widget *Widget::getParent() {
Callers
nothing calls this directly
Calls
1
equals
Method · 0.45
Tested by
no test coverage detected