Definition at line 102 of file offsetimagefilter.cpp.
◆ SimpleOffsetImageFilterGM()
SimpleOffsetImageFilterGM::SimpleOffsetImageFilterGM |
( |
| ) |
|
|
inline |
◆ doDraw()
Definition at line 111 of file offsetimagefilter.cpp.
112 {
114
115 if (clipR) {
116 p.setColor(0xFF00FF00);
120 }
121
122
123 if (imgf && cropR) {
124 p.setColor(0x66FF00FF);
126
130 }
131
132 p.setColor(0x660000FF);
134
135 if (clipR) {
138 }
139 if (imgf) {
140 p.setImageFilter(std::move(imgf));
141 }
142 p.setColor(0x66FF0000);
144
145 if (clipR) {
147 }
148 }
void drawRect(const SkRect &rect, const SkPaint &paint)
void clipRect(const SkRect &rect, SkClipOp op, bool doAntiAlias)
@ kStroke_Style
set to stroke geometry
@ kFill_Style
set to fill geometry
static SkRect Make(const SkISize &size)
SkRect makeInset(float dx, float dy) const
◆ getISize()
SkISize SimpleOffsetImageFilterGM::getISize |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ getName()
SkString SimpleOffsetImageFilterGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
◆ onDraw()
void SimpleOffsetImageFilterGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 150 of file offsetimagefilter.cpp.
150 {
156
158
160 this->
doDraw(canvas, r,
nullptr);
161
164
167
170
173
178
179
181
182
183
184
185
186
188
189
192
193
196
197
200 }
void doDraw(SkCanvas *canvas, const SkRect &r, sk_sp< SkImageFilter > imgf, const SkIRect *cropR=nullptr, const SkRect *clipR=nullptr)
void translate(SkScalar dx, SkScalar dy)
static sk_sp< SkImageFilter > Offset(SkScalar dx, SkScalar dy, sk_sp< SkImageFilter > input, const CropRect &cropRect={})
static constexpr SkIRect MakeWH(int32_t w, int32_t h)
static constexpr SkIRect MakeXYWH(int32_t x, int32_t y, int32_t w, int32_t h)
static constexpr SkRect MakeXYWH(float x, float y, float w, float h)
The documentation for this class was generated from the following file: