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

Method getPath

test/src/CanvasTest.cpp:1551–1563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1549 }
1550
1551 Path getPath() const override {
1552 if (points.size() < 2) {
1553 return {};
1554 }
1555
1556 Path path = {};
1557 path.moveTo(points[0]);
1558 for (size_t i = 1; i < points.size(); ++i) {
1559 path.lineTo(points[i]);
1560 }
1561 path.close();
1562 return path;
1563 }
1564
1565 Rect getBounds() const override {
1566 if (points.size() < 2) {

Callers 1

TGFX_TESTFunction · 0.45

Calls 4

sizeMethod · 0.45
moveToMethod · 0.45
lineToMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected