Home
last modified time | relevance | path

Searched refs:drawLine (Results 1 – 25 of 316) sorted by relevance

12345678910>>...13

/third_party/skia/docs/examples/
Dmapradius.cpp19 canvas->drawLine(40, 240, 40 + minorAxis.length(), 240, paint); in draw()
20 canvas->drawLine(42 + minorAxis.length(), 240, 42 + minorAxis.length() + majorAxis.length(), in draw()
23 canvas->drawLine(center.fX, center.fY, center.fX + mappedRadius, center.fY, paint); in draw()
24 canvas->drawLine(center.fX, center.fY, center.fX, center.fY + mappedRadius, paint); in draw()
25 canvas->drawLine(40, 220, 40 + mappedRadius, 220, paint); in draw()
26 canvas->drawLine(42 + mappedRadius, 220, 42 + mappedRadius * 2, 220, paint); in draw()
30 canvas->drawLine(center.fX, center.fY, center.fX + circleRadius, center.fY, paint); in draw()
31 canvas->drawLine(center.fX, center.fY, center.fX, center.fY + circleRadius, paint); in draw()
DCanvas_drawRRect.cpp15 canvas->drawLine(outer.fLeft + radii.fLeft, outer.fTop, in draw()
17 canvas->drawLine(outer.fRight - radii.fRight, outer.fTop, in draw()
19 canvas->drawLine(outer.fLeft, outer.fTop + radii.fTop, in draw()
21 canvas->drawLine(outer.fLeft, outer.fBottom - radii.fBottom, in draw()
DSkPath_cubicTo_example_parametric_animated.cpp58 canvas->drawLine(ab, bc, paint); in draw()
59 canvas->drawLine(bc, cd, paint); in draw()
60 canvas->drawLine(abc, bcd, paint); in draw()
63 canvas->drawLine(a, b, paint); in draw()
64 canvas->drawLine(b, c, paint); in draw()
65 canvas->drawLine(c, d, paint); in draw()
DRRect_setNinePatch.cpp14 canvas->drawLine(r.fLeft, r.fTop + rrect.radii(SkRRect::kUpperLeft_Corner).fY, in draw()
16 canvas->drawLine(r.fLeft, r.fBottom - rrect.radii(SkRRect::kLowerLeft_Corner).fY, in draw()
18 canvas->drawLine(r.fLeft + rrect.radii(SkRRect::kUpperLeft_Corner).fX, r.fTop, in draw()
20 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in draw()
DRRect_Corner.cpp15 canvas->drawLine(r.fLeft, r.fTop + rrect.radii(SkRRect::kUpperLeft_Corner).fY, in draw()
17 canvas->drawLine(r.fLeft, r.fBottom - rrect.radii(SkRRect::kLowerLeft_Corner).fY, in draw()
19 canvas->drawLine(r.fLeft + rrect.radii(SkRRect::kUpperLeft_Corner).fX, r.fTop, in draw()
21 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in draw()
DPath_arcTo_2_b.cpp21 canvas->drawLine(pts[0], pts[1], tangentPaint);
22 canvas->drawLine(pts[1], pts[2], tangentPaint);
28 canvas->drawLine(lastPt, center, tangentPaint);
32 canvas->drawLine(center, arcStart, tangentPaint);
DPath_arcTo_2_a.cpp21 canvas->drawLine(pts[0], pts[1], tangentPaint);
22 canvas->drawLine(pts[1], pts[2], tangentPaint);
29 canvas->drawLine(lastPt, center, tangentPaint);
33 canvas->drawLine(center, arcStart, tangentPaint);
DPoint_normalize_2.cpp12 canvas->drawLine(line[0], line[1], paint); in draw()
17 canvas->drawLine(line[0] - rotate90, line[0] + rotate90, paint); in draw()
18 canvas->drawLine(line[1] - rotate90, line[1] + rotate90, paint); in draw()
DMatrix_mapRadius.cpp31 canvas->drawLine(center.fX, center.fY, center.fX + mappedRadius, center.fY, paint);
32 canvas->drawLine(center.fX, center.fY, center.fX, center.fY + mappedRadius, paint);
37 canvas->drawLine(center.fX, center.fY, center.fX + circleRadius, center.fY, paint);
38 canvas->drawLine(center.fX, center.fY, center.fX, center.fY + circleRadius, paint);
DPoint_Normalize.cpp13 canvas->drawLine(line[0], line[1], paint);
18 canvas->drawLine(line[0] - rotate90, line[0] + rotate90, paint);
19 canvas->drawLine(line[1] - rotate90, line[1] + rotate90, paint);
DCanvas_drawLine.cpp12 canvas->drawLine(32, 96, 32, 160, paint); in draw()
14 canvas->drawLine(288, 96, 288, 160, paint); in draw()
/third_party/skia/experimental/sktext/samples/
DText.cpp46 void drawLine(SkCanvas* canvas, SkScalar w, SkScalar h, in drawLine() function in __anon8df927820111::TextSample_Align_Dir
99 drawLine(canvas, width, height, line, TextAlign::kLeft, TextDirection::kLtr); in onDrawContent()
101 drawLine(canvas, width, height, line, TextAlign::kRight, TextDirection::kLtr); in onDrawContent()
103 drawLine(canvas, width, height, line, TextAlign::kCenter, TextDirection::kLtr); in onDrawContent()
105 drawLine(canvas, width, height, line, TextAlign::kJustify, TextDirection::kLtr); in onDrawContent()
108 drawLine(canvas, width, height, line, TextAlign::kLeft, TextDirection::kRtl); in onDrawContent()
110 drawLine(canvas, width, height, line, TextAlign::kRight, TextDirection::kRtl); in onDrawContent()
112 drawLine(canvas, width, height, line, TextAlign::kCenter, TextDirection::kRtl); in onDrawContent()
114 drawLine(canvas, width, height, line, TextAlign::kJustify, TextDirection::kRtl); in onDrawContent()
/third_party/skia/gm/
Dcrop_imagefilter.cpp132 surf->getCanvas()->drawLine({0.f, 1.f*h/4.f}, {w, 1.f*h/4.f}, paint); in make_image()
134 surf->getCanvas()->drawLine({0.f, 3.f*h/8.f}, {w, 3.f*h/8.f}, paint); in make_image()
136 surf->getCanvas()->drawLine({0.f, 5.f*h/8.f}, {w, 5.f*h/8.f}, paint); in make_image()
138 surf->getCanvas()->drawLine({0.f, 3.f*h/4.f}, {w, 3.f*h/4.f}, paint); in make_image()
143 surf->getCanvas()->drawLine({1.f*w/4.f, 0.f}, {1.f*h/4.f, h}, paint); in make_image()
145 surf->getCanvas()->drawLine({3.f*w/8.f, 0.f}, {3.f*h/8.f, h}, paint); in make_image()
147 surf->getCanvas()->drawLine({5.f*w/8.f, 0.f}, {5.f*h/8.f, h}, paint); in make_image()
149 surf->getCanvas()->drawLine({3.f*w/4.f, 0.f}, {3.f*h/4.f, h}, paint); in make_image()
269 canvas->drawLine({kPaddedTileBounds.fLeft + 0.5f, kPaddedTileBounds.centerY() - 0.5f}, in draw_example_tile()
272 canvas->drawLine({kPaddedTileBounds.centerX() - 0.5f, kPaddedTileBounds.fTop + 0.5f}, in draw_example_tile()
[all …]
Dpixelsnap.cpp83 canvas->drawLine(0.5f, in onDraw()
88 canvas->drawLine(i * SkIntToScalar(kTrans) + 0.5f, in onDraw()
134 canvas->drawLine(1, 1, 4, 1, paint); in drawElement()
135 canvas->drawLine(6, 1, 6, 4, paint); in drawElement()
/third_party/flutter/skia/docs/examples/
DCanvas_drawRRect.cpp15 canvas->drawLine(outer.fLeft + radii.fLeft, outer.fTop, in draw()
17 canvas->drawLine(outer.fRight - radii.fRight, outer.fTop, in draw()
19 canvas->drawLine(outer.fLeft, outer.fTop + radii.fTop, in draw()
21 canvas->drawLine(outer.fLeft, outer.fBottom - radii.fBottom, in draw()
DRRect_Corner.cpp15 canvas->drawLine(r.fLeft, r.fTop + rrect.radii(SkRRect::kUpperLeft_Corner).fY, in draw()
17 canvas->drawLine(r.fLeft, r.fBottom - rrect.radii(SkRRect::kLowerLeft_Corner).fY, in draw()
19 canvas->drawLine(r.fLeft + rrect.radii(SkRRect::kUpperLeft_Corner).fX, r.fTop, in draw()
21 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in draw()
DRRect_setNinePatch.cpp14 canvas->drawLine(r.fLeft, r.fTop + rrect.radii(SkRRect::kUpperLeft_Corner).fY, in draw()
16 canvas->drawLine(r.fLeft, r.fBottom - rrect.radii(SkRRect::kLowerLeft_Corner).fY, in draw()
18 canvas->drawLine(r.fLeft + rrect.radii(SkRRect::kUpperLeft_Corner).fX, r.fTop, in draw()
20 canvas->drawLine(r.fRight - rrect.radii(SkRRect::kUpperRight_Corner).fX, r.fTop, in draw()
DPath_arcTo_2_b.cpp21 canvas->drawLine(pts[0], pts[1], tangentPaint);
22 canvas->drawLine(pts[1], pts[2], tangentPaint);
28 canvas->drawLine(lastPt, center, tangentPaint);
32 canvas->drawLine(center, arcStart, tangentPaint);
DPath_arcTo_2_a.cpp21 canvas->drawLine(pts[0], pts[1], tangentPaint);
22 canvas->drawLine(pts[1], pts[2], tangentPaint);
29 canvas->drawLine(lastPt, center, tangentPaint);
33 canvas->drawLine(center, arcStart, tangentPaint);
DPoint_normalize_2.cpp12 canvas->drawLine(line[0], line[1], paint); in draw()
17 canvas->drawLine(line[0] - rotate90, line[0] + rotate90, paint); in draw()
18 canvas->drawLine(line[1] - rotate90, line[1] + rotate90, paint); in draw()
DMatrix_mapRadius.cpp31 canvas->drawLine(center.fX, center.fY, center.fX + mappedRadius, center.fY, paint);
32 canvas->drawLine(center.fX, center.fY, center.fX, center.fY + mappedRadius, paint);
37 canvas->drawLine(center.fX, center.fY, center.fX + circleRadius, center.fY, paint);
38 canvas->drawLine(center.fX, center.fY, center.fX, center.fY + circleRadius, paint);
DPoint_Normalize.cpp13 canvas->drawLine(line[0], line[1], paint);
18 canvas->drawLine(line[0] - rotate90, line[0] + rotate90, paint);
19 canvas->drawLine(line[1] - rotate90, line[1] + rotate90, paint);
DMatrix_fixedStepInX.cpp21 canvas->drawLine(center, end, paint); in draw()
24 canvas->drawLine(end, end - arrow, paint); in draw()
25 canvas->drawLine(end, {end.fX + arrow.fY, end.fY - arrow.fX}, paint); in draw()
DCanvas_drawLine_2.cpp12 canvas->drawLine({32, 96}, {32, 160}, paint); in draw()
14 canvas->drawLine({288, 96}, {288, 160}, paint); in draw()
/third_party/flutter/skia/gm/
Dpixelsnap.cpp83 canvas->drawLine(0.5f, in onDraw()
88 canvas->drawLine(i * SkIntToScalar(kTrans) + 0.5f, in onDraw()
134 canvas->drawLine(1, 1, 4, 1, paint); in drawElement()
135 canvas->drawLine(6, 1, 6, 4, paint); in drawElement()

12345678910>>...13