MCPcopy Create free account
hub / github.com/VCVRack/Befaco / setCentredPos

Method setCentredPos

src/MidiThing.cpp:446–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

444 }
445
446 void setCentredPos(Vec pos) {
447 box.pos.x = pos.x - box.size.x / 2;
448 box.pos.y = pos.y - box.size.y / 2;
449 }
450
451 void drawBackground(const DrawArgs& args) override {
452 // Background

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected