MCPcopy 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
49void 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
59widget::Widget *Widget::getParent() {

Callers

nothing calls this directly

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected