| 952 | } |
| 953 | |
| 954 | void Layer::setTranslationX(Scalar translationX) { |
| 955 | if (_translation.width != translationX) { |
| 956 | _translation.width = translationX; |
| 957 | setChildNeedsDisplay(); |
| 958 | setVisualFrameDirty(); |
| 959 | } |
| 960 | } |
| 961 | |
| 962 | Scalar Layer::getTranslationY() const { |
| 963 | return _translation.height; |