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

Method setPosition

src/widget/Widget.cpp:34–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34void Widget::setPosition(math::Vec pos) {
35 if (pos.equals(box.pos))
36 return;
37 box.pos = pos;
38 // Dispatch Reposition event
39 RepositionEvent eReposition;
40 onReposition(eReposition);
41}
42
43
44math::Vec Widget::getSize() {

Callers 4

PlugWidgetMethod · 0.80
stepMethod · 0.80
requestModulePosMethod · 0.80
requestSelectionPosMethod · 0.80

Calls 1

equalsMethod · 0.45

Tested by

no test coverage detected