MCPcopy Create free account
hub / github.com/Tencent/tgfx / CornerPinEffect

Method CornerPinEffect

test/src/CornerPinEffect.cpp:59–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59CornerPinEffect::CornerPinEffect(const Point& upperLeft, const Point& upperRight,
60 const Point& lowerRight, const Point& lowerLeft) {
61 cornerPoints[0] = lowerLeft;
62 cornerPoints[1] = lowerRight;
63 cornerPoints[2] = upperLeft;
64 cornerPoints[3] = upperRight;
65 calculateVertexQs();
66}
67
68Rect CornerPinEffect::filterBounds(const Rect&) const {
69 auto& lowerLeft = cornerPoints[0];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected