Definition at line 114 of file patheffects.cpp.
◆ PathEffectGM()
skiagm::PathEffectGM::PathEffectGM |
( |
| ) |
|
|
inline |
◆ getISize()
SkISize skiagm::PathEffectGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString skiagm::PathEffectGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void skiagm::PathEffectGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 123 of file patheffects.cpp.
123 {
125 paint.setAntiAlias(
true);
127
129 {20, 20},
130 {70, 120},
131 {120, 30},
132 {170, 80},
133 {240, 50},
134 }, false);
135
137 for (
size_t i = 0; i < std::size(
gPE); i++) {
141 }
143
145 SkRect r = { 0, 0, 250, 120 };
149
151 for (
size_t i = 0; i < std::size(
gPE2); i++) {
155 }
156
158 for (
size_t i = 0; i < std::size(
gPE); i++) {
160 p.setAntiAlias(
true);
165 }
166 }
void translate(SkScalar dx, SkScalar dy)
void drawIRect(const SkIRect &rect, const SkPaint &paint)
void drawPath(const SkPath &path, const SkPaint &paint)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
SkPathBuilder & addRect(const SkRect &, SkPathDirection, unsigned startIndex)
SkPathBuilder & addOval(const SkRect &, SkPathDirection, unsigned startIndex)
static SkPath Polygon(const SkPoint pts[], int count, bool isClosed, SkPathFillType=SkPathFillType::kWinding, bool isVolatile=false)
sk_sp< SkBlender > blender SkRect rect
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
SkRect makeInset(float dx, float dy) const
The documentation for this class was generated from the following file: