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

Method onBoundsChanged

snap_drawing/src/snap_drawing/cpp/Layers/VideoLayer.cpp:50–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void VideoLayer::onBoundsChanged() {
51 Layer::onBoundsChanged();
52
53 _imageLayer->setFrame(Rect::makeXYWH(0, 0, getFrame().width(), getFrame().height()));
54}
55
56void VideoLayer::setFittingSizeMode(FittingSizeMode fittingSizeMode) {
57 _imageLayer->setFittingSizeMode(fittingSizeMode);

Callers

nothing calls this directly

Calls 3

setFrameMethod · 0.45
widthMethod · 0.45
heightMethod · 0.45

Tested by

no test coverage detected