Lines Matching full:path
130 //Path bounding size in bounds()
131 if (rs.path.pts.count > 0 ) { in bounds()
132 auto pts = rs.path.pts.begin(); in bounds()
136 for (auto pts2 = pts + 1; pts2 < rs.path.pts.end(); ++pts2) { in bounds()
156 return rs.path.pts.count > 0 ? true : false; in bounds()
161 rs.path.cmds.reserve(cmdCnt); in reserveCmd()
166 rs.path.pts.reserve(ptsCnt); in reservePts()
171 rs.path.cmds.grow(cmdCnt); in grow()
172 rs.path.pts.grow(ptsCnt); in grow()
177 memcpy(rs.path.cmds.end(), cmds, sizeof(PathCommand) * cmdCnt); in append()
178 memcpy(rs.path.pts.end(), pts, sizeof(Point) * ptsCnt); in append()
179 rs.path.cmds.count += cmdCnt; in append()
180 rs.path.pts.count += ptsCnt; in append()
185 rs.path.cmds.push(PathCommand::MoveTo); in moveTo()
186 rs.path.pts.push({x, y}); in moveTo()
191 rs.path.cmds.push(PathCommand::LineTo); in lineTo()
192 rs.path.pts.push({x, y}); in lineTo()
197 rs.path.cmds.push(PathCommand::CubicTo); in cubicTo()
198 rs.path.pts.push({cx1, cy1}); in cubicTo()
199 rs.path.pts.push({cx2, cy2}); in cubicTo()
200 rs.path.pts.push({x, y}); in cubicTo()
206 if (rs.path.cmds.count > 0 && rs.path.cmds.last() == PathCommand::Close) return; in close()
208 rs.path.cmds.push(PathCommand::Close); in close()
370 //Path in duplicate()
371 dup->rs.path.cmds.push(rs.path.cmds); in duplicate()
372 dup->rs.path.pts.push(rs.path.pts); in duplicate()
393 rs.path.cmds.clear(); in reset()
394 rs.path.pts.clear(); in reset()