Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
21
void PaintMaskLayer::setRect(const Rect& rect) {
22
_rect = rect;
23
24
if (!_path.isEmpty()) {
25
_path.reset();
26
}
27
}
28
29
void PaintMaskLayer::setColor(Color color) {
30
_color = color;
Callers
2
TEST_F
Function · 0.80
configure
Method · 0.80
Calls
2
reset
Method · 0.65
isEmpty
Method · 0.45
Tested by
1
TEST_F
Function · 0.64