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

Method setRect

snap_drawing/src/snap_drawing/cpp/Layers/Mask/PaintMaskLayer.cpp:21–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21void PaintMaskLayer::setRect(const Rect& rect) {
22 _rect = rect;
23
24 if (!_path.isEmpty()) {
25 _path.reset();
26 }
27}
28
29void PaintMaskLayer::setColor(Color color) {
30 _color = color;

Callers 2

TEST_FFunction · 0.80
configureMethod · 0.80

Calls 2

resetMethod · 0.65
isEmptyMethod · 0.45

Tested by 1

TEST_FFunction · 0.64