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

Method setSize

snap_drawing/src/snap_drawing/cpp/Layers/LayerRoot.cpp:78–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void LayerRoot::setSize(Size size, Scalar scale) {
79 if (_size != size) {
80 _size = size;
81 _needsLayout = true;
82 }
83
84 if (_scale != scale) {
85 _scale = scale;
86 setChildNeedsDisplay();
87 }
88
89 layoutIfNeeded();
90}
91
92void LayerRoot::setRenderViewport(const Rect& viewport) {
93 if (_renderViewport != viewport) {

Callers 5

SetUpMethod · 0.45
makeLayerRootMethod · 0.45
TESTFunction · 0.45
SetUpMethod · 0.45
SetUpMethod · 0.45

Calls

no outgoing calls

Tested by 5

SetUpMethod · 0.36
makeLayerRootMethod · 0.36
TESTFunction · 0.36
SetUpMethod · 0.36
SetUpMethod · 0.36