Definition at line 23 of file pathopsinverse.cpp.
◆ PathOpsInverseGM()
skiagm::PathOpsInverseGM::PathOpsInverseGM |
( |
| ) |
|
|
inline |
◆ blend()
Definition at line 44 of file pathopsinverse.cpp.
44 {
48 canvas.drawColor(one);
49 canvas.drawColor(
two);
52 }
void allocN32Pixels(int width, int height, bool isOpaque=false)
◆ getISize()
SkISize skiagm::PathOpsInverseGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString skiagm::PathOpsInverseGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ makePaint()
void skiagm::PathOpsInverseGM::makePaint |
( |
SkPaint * |
paint, |
|
|
SkColor |
color |
|
) |
| |
|
inlineprotected |
◆ onDraw()
void skiagm::PathOpsInverseGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 64 of file pathopsinverse.cpp.
64 {
66 int yPos = 0;
67 for (int oneFill = 0; oneFill <= 1; ++oneFill) {
70 for (int twoFill = 0; twoFill <= 1; ++twoFill) {
77 two.setFillType(twoF);
78 two.addRect(40, 40, 100, 100);
83 canvas->
drawPath(one, fOutlinePaint);
87 int xPos = 150;
97 xPos += 150;
98 }
99 yPos += 150;
100 }
101 }
102 }
@ kReverseDifference_SkPathOp
subtract the first path from the op path
@ kDifference_SkPathOp
subtract the op path from the first path
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
void translate(SkScalar dx, SkScalar dy)
void drawPath(const SkPath &path, const SkPaint &paint)
void setFillType(SkPathFillType ft)
SkPath & addRect(const SkRect &rect, SkPathDirection dir, unsigned start)
static constexpr SkRect MakeWH(float w, float h)
◆ onOnceBeforeDraw()
void skiagm::PathOpsInverseGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 29 of file pathopsinverse.cpp.
29 {
31 const unsigned twoColor = 0x807F1f1f;
42 }
@ kIntersect_SkPathOp
intersect the two paths
@ kUnion_SkPathOp
union (inclusive-or) the two paths
@ kXOR_SkPathOp
exclusive-or the two paths
void setStyle(Style style)
@ kStroke_Style
set to stroke geometry
void makePaint(SkPaint *paint, SkColor color)
SkColor blend(SkColor one, SkColor two)
The documentation for this class was generated from the following file: