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

Method withOffset

valdi/src/valdi/runtime/Views/Frame.cpp:44–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44Point Point::withOffset(const Point& other) const {
45 return Point(x + other.x, y + other.y);
46}
47
48Point Point::fromPixels(int32_t width, int32_t height, float pointScale) {
49 return Point(pixelsToPoints(width, pointScale), pixelsToPoints(height, pointScale));

Callers 3

getViewNodePointMethod · 0.80
calculateSelfViewportMethod · 0.80
updateCalculatedFrameMethod · 0.80

Calls 2

PointClass · 0.70
FrameClass · 0.70

Tested by

no test coverage detected