Lines Matching refs:PathCommand

33 static void _roundCorner(Array<PathCommand>& cmds, Array<Point>& pts, const Point& prev, const Poin…  in _roundCorner()
47 cmds.push(PathCommand::LineTo); in _roundCorner()
48 cmds.push(PathCommand::CubicTo); in _roundCorner()
102 …, const Line& nextLine, uint32_t movetoOutIndex, bool nextClose, Array<PathCommand>& outCmds, Arra… in corner()
113 outCmds.push(PathCommand::CubicTo); in corner()
121 outCmds.push(PathCommand::LineTo); in corner()
125 outCmds.push(PathCommand::LineTo); in corner()
133PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t& currentPt, uint32_t current… in line()
140 …if (inCmds[currentCmd - 1] != PathCommand::LineTo) state.line = _offset(inPts[currentPt - 1], inPt… in line()
143 outCmds.push(PathCommand::MoveTo); in line()
151 …return inCmds[cmd] == PathCommand::CubicTo && !tvg::zero(inPts[pt] - inPts[pt + 1]) && !tvg::zero(… in line()
154 outCmds.push(PathCommand::LineTo); in line()
156 …if (currentCmd + 1 == inCmdsCnt || inCmds[currentCmd + 1] == PathCommand::MoveTo || nonDegenerated… in line()
163 …if (inCmds[currentCmd + 1] == PathCommand::LineTo) nextLine = _offset(inPts[currentPt + degenerate… in line()
164 …else if (inCmds[currentCmd + 1] == PathCommand::CubicTo) nextLine = _offset(inPts[currentPt + 1 + … in line()
165 …else if (inCmds[currentCmd + 1] == PathCommand::Close && !_zero(inPts[currentPt + degenerated], in… in line()
168 …corner(state.line, nextLine, state.movetoOutIndex, inCmds[currentCmd + 1] == PathCommand::Close, o… in line()
178 …sModifier::modifyPath(const PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t … in modifyPath()
187 case PathCommand::MoveTo: { in modifyPath()
189 outCmds.push(PathCommand::MoveTo); in modifyPath()
193 case PathCommand::CubicTo: { in modifyPath()
199 if (inCmds[iCmds + 1] == PathCommand::CubicTo && in modifyPath()
205 } else if (inCmds[iCmds + 1] == PathCommand::Close) { in modifyPath()
212 outCmds.push(PathCommand::CubicTo); in modifyPath()
218 case PathCommand::Close: { in modifyPath()
219 outCmds.push(PathCommand::Close); in modifyPath()
234 …ier::modifyPolystar(TVG_UNUSED const Array<PathCommand>& inCmds, const Array<Point>& inPts, Array< in modifyPolystar()
246 outCmds.push(PathCommand::MoveTo); in modifyPolystar()
262 outCmds.push(PathCommand::CubicTo); in modifyPolystar()
264 outCmds.push(PathCommand::CubicTo); in modifyPolystar()
266 outCmds.push(PathCommand::CubicTo); in modifyPolystar()
275 outCmds.push(PathCommand::MoveTo); in modifyPolystar()
288 outCmds.push(PathCommand::LineTo); in modifyPolystar()
290 outCmds.push(PathCommand::CubicTo); in modifyPolystar()
296 outCmds.push(PathCommand::Close); in modifyPolystar()
308 …tModifier::modifyPath(const PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t … in modifyPath()
319 if (inCmds[iCmd] == PathCommand::MoveTo) { in modifyPath()
322 } else if (inCmds[iCmd] == PathCommand::LineTo) { in modifyPath()
324 } else if (inCmds[iCmd] == PathCommand::CubicTo) { in modifyPath()
351 outCmds.push(PathCommand::MoveTo); in modifyPath()
365 outCmds.push(PathCommand::CubicTo); in modifyPath()
372 outCmds.push(PathCommand::LineTo); in modifyPath()
375 outCmds.push(PathCommand::Close); in modifyPath()
382 …OffsetModifier::modifyPolystar(const Array<PathCommand>& inCmds, const Array<Point>& inPts, Array< in modifyPolystar()
387 …tModifier::modifyRect(const PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t … in modifyRect()