MCPcopy Create free account
hub / github.com/Snapchat/Valdi / setScaleX

Method setScaleX

snap_drawing/src/snap_drawing/cpp/Layers/Layer.cpp:978–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

976}
977
978void Layer::setScaleX(Scalar scaleX) {
979 if (_scaleX != scaleX) {
980 _scaleX = scaleX;
981 _hasScale = (_scaleX != 1) || (_scaleY != 1);
982 setChildNeedsDisplay();
983 setVisualFrameDirty();
984 }
985}
986
987Scalar Layer::getScaleY() const {
988 return _scaleY;

Callers 1

updateMatrixMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected