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

Method fromPixels

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

Source from the content-addressed store, hash-verified

46}
47
48Point Point::fromPixels(int32_t width, int32_t height, float pointScale) {
49 return Point(pixelsToPoints(width, pointScale), pixelsToPoints(height, pointScale));
50}
51
52std::string Size::toString() const {
53 return fmt::format("width: {}, height: {}", width, height);

Callers

nothing calls this directly

Calls 3

pixelsToPointsFunction · 0.85
PointClass · 0.70
SizeClass · 0.70

Tested by

no test coverage detected