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

Method setWidth

Source/Node/Node.cpp:249–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

247}
248
249void Node::setWidth(float var) {
250 auto& transform = getTransform();
251 transform.width = var;
252 transform.anchorPointX = transform.anchorX * var;
253 markDirty();
254}
255
256float Node::getWidth() const noexcept {
257 return GetTAttr(width);

Callers 3

SetWidthFunction · 0.45
node_set_widthFunction · 0.45
rect_set_widthFunction · 0.45

Calls 2

getTransformFunction · 0.85
markDirtyFunction · 0.85

Tested by

no test coverage detected