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

Method setFrame

snap_drawing/src/snap_drawing/cpp/Layers/Layer.cpp:575–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

573void Layer::onRightToLeftChanged() {}
574
575void Layer::setFrame(const Rect& frame) {
576 if (_frame != frame) {
577 auto boundsChanged = (_frame.width() != frame.width()) || (_frame.height() != frame.height());
578 _frame = frame;
579
580 setVisualFrameDirty();
581
582 if (boundsChanged) {
583 setNeedsDisplay();
584 onBoundsChanged();
585 } else {
586 setChildNeedsDisplay();
587 }
588 }
589}
590
591const Rect& Layer::getFrame() const {
592 return _frame;

Callers 9

createViewFunction · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
onLayoutMethod · 0.45
layoutIfNeededMethod · 0.45
onBoundsChangedMethod · 0.45

Calls 2

widthMethod · 0.45
heightMethod · 0.45

Tested by 5

createViewFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36