Lines Matching refs:path
13 static SkScalar make_triangle(SkPath* path) { in make_triangle() argument
17 path->moveTo(SkIntToScalar(gCoord[0]), SkIntToScalar(gCoord[1])); in make_triangle()
18 path->lineTo(SkIntToScalar(gCoord[2]), SkIntToScalar(gCoord[3])); in make_triangle()
19 path->lineTo(SkIntToScalar(gCoord[4]), SkIntToScalar(gCoord[5])); in make_triangle()
20 path->close(); in make_triangle()
21 path->offset(SkIntToScalar(10), SkIntToScalar(0)); in make_triangle()
25 static SkScalar make_rect(SkPath* path) { in make_rect() argument
28 path->addRect(r); in make_rect()
29 path->offset(SkIntToScalar(10), SkIntToScalar(0)); in make_rect()
33 static SkScalar make_oval(SkPath* path) { in make_oval() argument
36 path->addOval(r); in make_oval()
37 path->offset(SkIntToScalar(10), SkIntToScalar(0)); in make_oval()
41 static SkScalar make_star(SkPath* path, int n) { in make_star() argument
48 path->moveTo(c, c - r); in make_star()
52 path->lineTo(c + SkScalarMul(cosV, r), c + SkScalarMul(sinV, r)); in make_star()
54 path->close(); in make_star()
58 static SkScalar make_star_5(SkPath* path) { return make_star(path, 5); } in make_star_5() argument
59 static SkScalar make_star_13(SkPath* path) { return make_star(path, 13); } in make_star_13() argument
61 static SkScalar make_three_line(SkPath* path) { in make_three_line() argument
64 path->moveTo(-32.5f + xOffset, 0.0f + yOffset); in make_three_line()
65 path->lineTo(32.5f + xOffset, 0.0f + yOffset); in make_three_line()
67 path->moveTo(-32.5f + xOffset, 19 + yOffset); in make_three_line()
68 path->lineTo(32.5f + xOffset, 19 + yOffset); in make_three_line()
70 path->moveTo(-32.5f + xOffset, -19 + yOffset); in make_three_line()
71 path->lineTo(32.5f + xOffset, -19 + yOffset); in make_three_line()
72 path->lineTo(-32.5f + xOffset, -19 + yOffset); in make_three_line()
74 path->close(); in make_three_line()
79 static SkScalar make_arrow(SkPath* path) { in make_arrow() argument
82 path->moveTo(-26.f + xOffset, 0.0f + yOffset); in make_arrow()
83 path->lineTo(26.f + xOffset, 0.0f + yOffset); in make_arrow()
85 path->moveTo(-28.f + xOffset, -2.4748745f + yOffset); in make_arrow()
86 path->lineTo(0 + xOffset, 25.525126f + yOffset); in make_arrow()
88 path->moveTo(-28.f + xOffset, 2.4748745f + yOffset); in make_arrow()
89 path->lineTo(0 + xOffset, -25.525126f + yOffset); in make_arrow()
90 path->lineTo(-28.f + xOffset, 2.4748745f + yOffset); in make_arrow()
92 path->close(); in make_arrow()
97 static SkScalar make_curve(SkPath* path) { in make_curve() argument
100 path->moveTo(491 + xOffset, 56 + yOffset); in make_curve()
101 path->conicTo(435.93292f + xOffset, 56.000031f + yOffset, in make_curve()
108 static SkScalar make_battery(SkPath* path) { in make_battery() argument
111 path->moveTo(24.67f + xOffset, 0.33000004f); in make_battery()
112 path->lineTo(8.3299999f + xOffset, 0.33000004f); in make_battery()
113 path->lineTo(8.3299999f + xOffset, 5.3299999f); in make_battery()
114 path->lineTo(0.33000004f + xOffset, 5.3299999f); in make_battery()
115 path->lineTo(0.33000004f + xOffset, 50.669998f); in make_battery()
116 path->lineTo(32.669998f + xOffset, 50.669998f); in make_battery()
117 path->lineTo(32.669998f + xOffset, 5.3299999f); in make_battery()
118 path->lineTo(24.67f + xOffset, 5.3299999f); in make_battery()
119 path->lineTo(24.67f + xOffset, 0.33000004f); in make_battery()
120 path->close(); in make_battery()
122 path->moveTo(25.727224f + xOffset, 12.886665f); in make_battery()
123 path->lineTo(10.907918f + xOffset, 12.886665f); in make_battery()
124 path->lineTo(7.5166659f + xOffset, 28.683645f); in make_battery()
125 path->lineTo(14.810181f + xOffset, 28.683645f); in make_battery()
126 path->lineTo(7.7024879f + xOffset, 46.135998f); in make_battery()
127 path->lineTo(28.049999f + xOffset, 25.136419f); in make_battery()
128 path->lineTo(16.854223f + xOffset, 25.136419f); in make_battery()
129 path->lineTo(25.727224f + xOffset, 12.886665f); in make_battery()
130 path->close(); in make_battery()
134 static SkScalar make_battery2(SkPath* path) { in make_battery2() argument
137 path->moveTo(32.669998f + xOffset, 9.8640003f); in make_battery2()
138 path->lineTo(0.33000004f + xOffset, 9.8640003f); in make_battery2()
139 path->lineTo(0.33000004f + xOffset, 50.669998f); in make_battery2()
140 path->lineTo(32.669998f + xOffset, 50.669998f); in make_battery2()
141 path->lineTo(32.669998f + xOffset, 9.8640003f); in make_battery2()
142 path->close(); in make_battery2()
144 path->moveTo(10.907918f + xOffset, 12.886665f); in make_battery2()
145 path->lineTo(25.727224f + xOffset, 12.886665f); in make_battery2()
146 path->lineTo(16.854223f + xOffset, 25.136419f); in make_battery2()
147 path->lineTo(28.049999f + xOffset, 25.136419f); in make_battery2()
148 path->lineTo(7.7024879f + xOffset, 46.135998f); in make_battery2()
149 path->lineTo(14.810181f + xOffset, 28.683645f); in make_battery2()
150 path->lineTo(7.5166659f + xOffset, 28.683645f); in make_battery2()
151 path->lineTo(10.907918f + xOffset, 12.886665f); in make_battery2()
152 path->close(); in make_battery2()