MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / setPosition

Method setPosition

Source/Node/Node.cpp:176–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174}
175
176void Node::setPosition(Vec2 var) {
177 auto& transform = getTransform();
178 transform.x = var.x;
179 transform.y = var.y;
180 markDirty();
181}
182
183Vec2 Node::getPosition() const noexcept {
184 if (_transform) return {_transform->x, _transform->y};

Callers 15

updateCharactersMethod · 0.45
updateLabelMethod · 0.45
_updateFrameMethod · 0.45
ARRAY_STARTFunction · 0.45
newRenderPairMethod · 0.45
grabMethod · 0.45
initMethod · 0.45
renderMethod · 0.45
restoreMethod · 0.45
updateMethod · 0.45
cameraotho_set_positionFunction · 0.45
node_set_positionFunction · 0.45

Calls 2

getTransformFunction · 0.85
markDirtyFunction · 0.85

Tested by

no test coverage detected