• Home
  • Raw
  • Download

Lines Matching refs:canvas_

48         OH_Drawing_Canvas *canvas_ = nullptr;  member in OHOS::Rosen::Drawing::NativeDrawingCanvasTest
56 canvas_ = OH_Drawing_CanvasCreate(); in SetUp()
57 ASSERT_NE(nullptr, canvas_); in SetUp()
58 OH_Drawing_CanvasClear(canvas_, OH_Drawing_ColorSetArgb(0xFF, 0xFF, 0xFF, 0xFF)); in SetUp()
62 OH_Drawing_CanvasAttachBrush(canvas_, brush_); in SetUp()
67 if (canvas_ != nullptr) { in TearDown()
68 OH_Drawing_CanvasDetachBrush(canvas_); in TearDown()
71 OH_Drawing_CanvasDestroy(canvas_); in TearDown()
72 canvas_ = nullptr; in TearDown()
88 OH_Drawing_CanvasAttachPen(canvas_, nullptr);
89 OH_Drawing_CanvasTranslate(canvas_, INT32_MIN, INT32_MIN);
90 OH_Drawing_CanvasTranslate(canvas_, INT32_MAX, INT32_MAX);
92 OH_Drawing_CanvasDrawLine(canvas_, 0, 0, INT32_MAX, INT32_MAX);
93 OH_Drawing_CanvasDrawLine(canvas_, 0, 0, INT32_MIN, INT32_MIN);
100 OH_Drawing_CanvasDrawPath(canvas_, nullptr);
114 OH_Drawing_CanvasBind(canvas_, bitmap);
128 OH_Drawing_CanvasAttachPen(canvas_, pen);
129 OH_Drawing_CanvasDetachPen(canvas_);
141 OH_Drawing_CanvasDrawLine(canvas_, 0, 0, 20, 20);
142 OH_Drawing_CanvasDrawLine(canvas_, -15.2f, -1, 0, 20);
175 OH_Drawing_CanvasDrawPath(canvas_, path);
190 OH_Drawing_CanvasSave(canvas_);
192 OH_Drawing_CanvasTranslate(canvas_, 100, 100);
194 OH_Drawing_CanvasDrawArc(canvas_, nullptr, 10, 200);
195 OH_Drawing_CanvasDrawArc(canvas_, rect, 10, 200);
197 OH_Drawing_CanvasRestore(canvas_);
198 OH_Drawing_CanvasTranslate(canvas_, 200, 200);
200 OH_Drawing_CanvasDrawOval(canvas_, nullptr);
201 OH_Drawing_CanvasDrawOval(canvas_, rect);
215 OH_Drawing_CanvasClear(canvas_, -100);
216 …OH_Drawing_CanvasClear(canvas_, OH_Drawing_ColorSetArgb(INT32_MAX, INT32_MAX, INT32_MIN, INT32_MIN…
217 OH_Drawing_CanvasClear(canvas_, OH_Drawing_ColorSetArgb(0xFF, 0xFF, 0x00, 0x00));
228 OH_Drawing_CanvasSave(canvas_);
229 OH_Drawing_CanvasTranslate(canvas_, 300, 300);
230 OH_Drawing_CanvasSave(canvas_);
231 OH_Drawing_CanvasTranslate(canvas_, 100, 100);
232 OH_Drawing_CanvasSave(canvas_);
233 OH_Drawing_CanvasTranslate(canvas_, 100, 100);
235 OH_Drawing_CanvasDrawRect(canvas_, rect);
236 int count = OH_Drawing_CanvasGetSaveCount(canvas_);
239 OH_Drawing_CanvasRestoreToCount(canvas_, count - 2);
240 EXPECT_EQ(2, OH_Drawing_CanvasGetSaveCount(canvas_));
246 OH_Drawing_CanvasDrawRoundRect(canvas_, nullptr);
247 OH_Drawing_CanvasDrawRoundRect(canvas_, roundRect);
248 OH_Drawing_CanvasRestoreToCount(canvas_, 1);
249 OH_Drawing_CanvasDrawRect(canvas_, rect);
265 OH_Drawing_CanvasTranslate(canvas_, 20, 20);
266 OH_Drawing_CanvasDrawRect(canvas_, rect);
268 OH_Drawing_CanvasScale(canvas_, 2, .5f);
271 OH_Drawing_CanvasDrawRect(canvas_, rect);
284 OH_Drawing_CanvasRotate(canvas_, 10, 0, 0);
289 OH_Drawing_CanvasSave(canvas_);
291 OH_Drawing_CanvasClipRect(canvas_, nullptr, OH_Drawing_CanvasClipOp::INTERSECT, alias);
292 OH_Drawing_CanvasClipRect(canvas_, rect, OH_Drawing_CanvasClipOp::INTERSECT, alias);
293 OH_Drawing_CanvasDrawCircle(canvas_, nullptr, 60);
295 OH_Drawing_CanvasDrawCircle(canvas_, point, 60);
296 OH_Drawing_CanvasRestore(canvas_);
297 OH_Drawing_CanvasTranslate(canvas_, 80, 0);
319 OH_Drawing_CanvasClipPath(canvas_, nullptr, OH_Drawing_CanvasClipOp::DIFFERENCE, true);
320 OH_Drawing_CanvasClipPath(canvas_, path, OH_Drawing_CanvasClipOp::DIFFERENCE, true);
322 OH_Drawing_CanvasDrawRect(canvas_, rect);
345 OH_Drawing_CanvasDrawRect(canvas_, rect);
372 OH_Drawing_CanvasDrawRect(canvas_, rect);
397 OH_Drawing_CanvasDrawRect(canvas_, rect);
419 OH_Drawing_CanvasDrawRect(canvas_, rect);
443 OH_Drawing_CanvasDrawRect(canvas_, rect);
446 OH_Drawing_CanvasTranslate(canvas_, 100, 100);
447 OH_Drawing_CanvasDrawRect(canvas_, rect);
450 OH_Drawing_CanvasTranslate(canvas_, 200, 200);
451 OH_Drawing_CanvasDrawRect(canvas_, rect);
463 OH_Drawing_CanvasTranslate(canvas_, 300, 300);
464 OH_Drawing_CanvasDrawRect(canvas_, rect);
492 OH_Drawing_Canvas* canvas_ = OH_Drawing_CanvasCreate(); variable
494 OH_Drawing_CanvasDrawRect(canvas_, rect);
515 OH_Drawing_CanvasBind(canvas_, bitmap);
516 OH_Drawing_CanvasDrawBitmap(canvas_, bitmap, 0, 0);
517 OH_Drawing_CanvasClear(canvas_, OH_Drawing_ColorSetArgb(0xFF, 0xFF, 0xFF, 0xFF));
568 OH_Drawing_CanvasDrawTextBlob(canvas_, textBlob, 100, 700);