Lines Matching refs:SkRegion

21 #Class SkRegion
27 SkRegion describes the set of pixels used to clip Canvas. SkRegion is compact,
29 of rectangles. SkRegion may reduce the current Canvas_Clip, or may be drawn as
30 one or more integer rectangles. SkRegion iterator returns the scan lines or
42 Iterator(const SkRegion& region);
44 void reset(const SkRegion& region);
48 const SkRegion* rgn();
62 SkRegion::Iterator iter;
63 SkRegion region;
73 #SeeAlso reset SkRegion
79 #Method Iterator(const SkRegion& region)
84 SkRegion region;
86 SkRegion::Iterator iter(region);
94 #SeeAlso reset SkRegion Cliperator Spanerator
106 auto debugster = [](const char* label, SkRegion::Iterator& iter, bool addRewind) -> void {
114 SkRegion::Iterator iter;
116 SkRegion region;
141 #Method void reset(const SkRegion& region)
146 auto debugster = [](const char* label, SkRegion::Iterator& iter) -> void {
149 SkRegion region;
150 SkRegion::Iterator iter(region);
174 SkRegion region;
175 SkRegion::Iterator iter(region);
197 SkRegion region;
200 SkRegion::Iterator iter(region);
224 SkRegion region;
225 SkRegion::Iterator iter(region);
245 #Method const SkRegion* rgn() const
250 SkRegion region;
253 SkRegion::Iterator iter(region);
274 Cliperator(const SkRegion& region, const SkIRect& clip);
286 #Method Cliperator(const SkRegion& region, const SkIRect& clip)
291 SkRegion region;
293 SkRegion::Cliperator clipper(region, {0, 0, 2, 3});
301 #SeeAlso SkRegion Iterator Spanerator
312 auto debugster = [](const char* label, SkRegion& region) -> void {
313 SkRegion::Cliperator clipper(region, {0, 0, 5, 5});
316 SkRegion region;
337 SkRegion region;
340 SkRegion::Cliperator clipper(region, {0, 3, 8, 7});
364 auto debugster = [](const char* label, SkRegion& region) -> void {
365 SkRegion::Cliperator clipper(region, {0, 0, 5, 3});
369 SkRegion region;
394 Spanerator(const SkRegion& region, int y, int left, int right);
403 #Method Spanerator(const SkRegion& region, int y, int left, int right)
408 SkRegion region;
410 SkRegion::Spanerator spanner(region, 3, 2, 4);
416 #SeeAlso SkRegion Iterator Cliperator
427 auto debugster = [](const char* label, SkRegion& region) -> void {
428 SkRegion::Spanerator spanner(region, 3, 2, 4);
435 SkRegion region;
453 #Method SkRegion()
459 SkRegion region;
473 #Method SkRegion(const SkRegion& region)
479 auto debugster = [](const char* label, SkRegion& region) -> void {
483 SkRegion region({1, 2, 3, 4});
484 SkRegion region2(region);
500 #SeeAlso setRegion operator=(const SkRegion& region)
506 #Method explicit SkRegion(const SkIRect& rect)
512 SkRegion region({1, 2, 3, 4});
513 SkRegion region2;
524 #Method ~SkRegion()
533 SkRegion* region = new SkRegion({1, 2, 3, 4});
534 SkRegion region2(*region);
543 #SeeAlso SkRegion() SkRegion(const SkRegion& region) SkRegion(const SkIRect& rect) operator=(const
549 #Method SkRegion& operator=(const SkRegion& region)
555 auto debugster = [](const char* label, SkRegion& region) -> void {
559 SkRegion region1({1, 2, 3, 4});
560 SkRegion region2 = region1;
569 #SeeAlso set swap SkRegion(const SkRegion& region)
575 #Method bool operator==(const SkRegion& other) const
581 auto debugster = [](const char* prefix, const SkRegion& a, const SkRegion& b) -> void {
584 SkRegion one;
585 SkRegion two;
598 #SeeAlso operator!=(const SkRegion& other) const operator=(const SkRegion& region)
604 #Method bool operator!=(const SkRegion& other) const
610 auto debugster = [](const char* prefix, const SkRegion& a, const SkRegion& b) -> void {
613 SkRegion one;
614 SkRegion two;
619 two.op({1, 3, 3, 4}, SkRegion::kUnion_Op);
628 #SeeAlso operator==(const SkRegion& other) const operator=(const SkRegion& region)
634 #Method bool set(const SkRegion& src)
640 auto debugster = [](const char* label, SkRegion& region) -> void {
644 SkRegion region1({1, 2, 3, 4});
645 SkRegion region2;
655 #SeeAlso operator=(const SkRegion& region) swap SkRegion(const SkRegion& region)
661 #Method void swap(SkRegion& other)
667 auto debugster = [](const char* label, SkRegion& region) -> void {
671 SkRegion region1({1, 2, 3, 4});
672 SkRegion region2;
682 #SeeAlso operator=(const SkRegion& region) set SkRegion(const SkRegion& region)
694 auto debugster = [](const char* label, SkRegion& region) -> void {
697 SkRegion region;
710 #SeeAlso isRect isComplex operator==(const SkRegion& other) const
722 auto debugster = [](const char* label, const SkRegion& region) -> void {
725 SkRegion region;
750 auto debugster = [](const char* label, const SkRegion& region) -> void {
753 SkRegion region;
757 region.op({2, 3, 4, 5}, SkRegion::kUnion_Op);
778 SkRegion region({1, 2, 3, 4});
779 region.op({2, 3, 4, 5}, SkRegion::kUnion_Op);
799 auto debugster = [](const char* label, const SkRegion& region) -> void {
802 SkRegion region;
806 region.op({2, 3, 4, 5}, SkRegion::kUnion_Op);
828 SkRegion region;
830 region.op({30, 40, 60, 80}, SkRegion::kXOR_Op);
850 auto debugster = [](const char* label, SkRegion& region) -> void {
854 SkRegion region({1, 2, 3, 4});
866 #SeeAlso SkRegion()
878 SkRegion region({1, 2, 3, 4});
890 #SeeAlso SkRegion(const SkIRect& rect)
902 auto debugster = [](const char* label, bool success, SkRegion& region) -> void {
907 SkRegion region;
918 #SeeAlso SkRegion(const SkIRect& rect)
932 SkRegion region;
937 region.op(add, SkRegion::kUnion_Op);
949 #Method bool setRegion(const SkRegion& region)
955 auto debugster = [](const char* label, SkRegion& region) -> void {
959 SkRegion region({1, 2, 3, 4});
960 SkRegion region2;
977 #SeeAlso SkRegion(const SkRegion& region)
983 #Method bool setPath(const SkPath& path, const SkRegion& clip)
995 SkRegion clipRegion(clipRect);
996 SkRegion region;
1023 SkRegion region;
1024 region.setPath(textPath, SkRegion({0, 0, 256, 256}));
1037 #Method bool intersects(const SkRegion& other) const
1048 SkRegion hRegion, dotRegion;
1049 hRegion.setPath(hPath, SkRegion({0, 0, 256, 256}));
1050 dotRegion.setPath(dotPath, SkRegion({0, 0, 256, 256}));
1073 SkRegion xRegion;
1074 xRegion.setPath(xPath, SkRegion({0, 0, 256, 256}));
1100 SkRegion xRegion;
1102 xRegion.setPath(xPath, SkRegion(drawBounds));
1103 xRegion.op(drawBounds, SkRegion::kReverseDifference_Op);
1118 #Method bool contains(const SkRegion& other) const
1129 SkRegion xRegion, testRegion;
1131 xRegion.setPath(xPath, SkRegion(drawBounds));
1132 testRegion.setPath(testPath, SkRegion(drawBounds));
1133 xRegion.op(drawBounds, SkRegion::kReverseDifference_Op);
1153 SkRegion region({1, 2, 3, 4});
1156 region.op({1, 4, 3, 6}, SkRegion::kUnion_Op);
1158 region.op({1, 7, 3, 8}, SkRegion::kUnion_Op);
1178 auto debugster = [](const char* label, SkRegion& region) -> void {
1181 SkRegion region({1, 2, 3, 4});
1183 region.op({1, 4, 3, 6}, SkRegion::kUnion_Op);
1185 region.op({1, 7, 3, 8}, SkRegion::kUnion_Op);
1206 SkRegion region({1, 2, 3, 4});
1209 region.op({1, 4, 3, 6}, SkRegion::kUnion_Op);
1211 region.op({4, 7, 5, 8}, SkRegion::kUnion_Op);
1226 #Method bool quickReject(const SkRegion& rgn) const
1230 SkRegion region({1, 2, 3, 4});
1231 SkRegion test;
1235 region.op({1, 4, 3, 6}, SkRegion::kUnion_Op);
1237 region.op({4, 7, 5, 8}, SkRegion::kUnion_Op);
1259 SkRegion test;
1276 #Method void translate(int dx, int dy, SkRegion* dst) const
1280 SkRegion test;
1287 SkRegion second;
1289 test.op(second, SkRegion::kXOR_Op);
1346 SkRegion operand({35, 35, 85, 85});
1350 for (auto op : { SkRegion::kDifference_Op, SkRegion::kIntersect_Op, SkRegion::kUnion_Op,
1351 SkRegion::kXOR_Op, SkRegion::kReverseDifference_Op, SkRegion::kReplace_Op } ) {
1352 SkRegion target({10, 10, 60, 60});
1357 if (SkRegion::kUnion_Op == op) {
1387 SkRegion xRegion;
1389 xRegion.setPath(xPath, SkRegion(drawBounds));
1390 xRegion.op(drawBounds, SkRegion::kReverseDifference_Op);
1410 SkRegion xRegion;
1412 xRegion.setPath(xPath, SkRegion(drawBounds));
1414 drawBounds.fRight, drawBounds.fBottom, SkRegion::kReverseDifference_Op);
1424 #Method bool op(const SkRegion& rgn, Op op)
1435 SkRegion xRegion, opRegion;
1437 opRegion.setPath(opPath, SkRegion(drawBounds));
1438 xRegion.setPath(xPath, SkRegion(drawBounds));
1439 xRegion.op(opRegion, SkRegion::kReverseDifference_Op);
1449 #Method bool op(const SkIRect& rect, const SkRegion& rgn, Op op)
1460 SkRegion xRegion, opRegion, rectRegion;
1462 opRegion.setPath(opPath, SkRegion(drawBounds));
1463 xRegion.setPath(xPath, SkRegion(drawBounds));
1465 rectRegion.op(drawBounds, opRegion, SkRegion::kIntersect_Op);
1466 xRegion.op(rectRegion, SkRegion::kReverseDifference_Op);
1476 #Method bool op(const SkRegion& rgn, const SkIRect& rect, Op op)
1487 SkRegion xRegion, opRegion, rectRegion;
1489 opRegion.setPath(opPath, SkRegion(drawBounds));
1490 xRegion.setPath(xPath, SkRegion(drawBounds));
1492 rectRegion.op(opRegion, drawBounds, SkRegion::kUnion_Op);
1493 xRegion.op(rectRegion, SkRegion::kReverseDifference_Op);
1503 #Method bool op(const SkRegion& rgna, const SkRegion& rgnb, Op op)
1516 SkRegion xRegion, opRegion, rectRegion;
1518 opRegion.setPath(opPath, SkRegion(drawBounds));
1519 xRegion.setPath(xPath, SkRegion(drawBounds));
1522 rectRegion.op(xRegion, SkRegion::kIntersect_Op);
1523 xRegion.op(rectRegion, opRegion, SkRegion::kReverseDifference_Op);
1545 SkRegion xRegion;
1546 xRegion.setPath(xPath, SkRegion(drawBounds));
1550 SkRegion copy;
1568 SkRegion region({20, 20, 80, 80});
1572 SkRegion copy;
1581 #Class SkRegion ##