Lines Matching refs:subPath

372     static void shortenSubPath (Array<LineSection>& subPath, float amountAtStart, float amountAtEnd)  in shortenSubPath()  argument
374 while (amountAtEnd > 0 && subPath.size() > 0) in shortenSubPath()
376 auto& l = subPath.getReference (subPath.size() - 1); in shortenSubPath()
381 if (len <= amountAtEnd && subPath.size() > 1) in shortenSubPath()
383 LineSection& prev = subPath.getReference (subPath.size() - 2); in shortenSubPath()
386 subPath.removeLast(); in shortenSubPath()
402 while (amountAtStart > 0 && subPath.size() > 0) in shortenSubPath()
404 auto& l = subPath.getReference (0); in shortenSubPath()
409 if (len <= amountAtStart && subPath.size() > 1) in shortenSubPath()
411 LineSection& next = subPath.getReference (1); in shortenSubPath()
414 subPath.remove (0); in shortenSubPath()
431 static void addSubPath (Path& destPath, Array<LineSection>& subPath, in addSubPath() argument
436 jassert (subPath.size() > 0); in addSubPath()
439 shortenSubPath (subPath, arrowhead->startLength, arrowhead->endLength); in addSubPath()
441 auto& firstLine = subPath.getReference (0); in addSubPath()
463 for (int i = 1; i < subPath.size(); ++i) in addSubPath()
465 const LineSection& l = subPath.getReference (i); in addSubPath()
479 auto& lastLine = subPath.getReference (subPath.size() - 1); in addSubPath()
483 auto& l = subPath.getReference (0); in addSubPath()
510 for (int i = subPath.size() - 1; --i >= 0;) in addSubPath()
512 auto& l = subPath.getReference (i); in addSubPath()
579 Array<LineSection> subPath; in createStroke() local
580 subPath.ensureStorageAllocated (512); in createStroke()
591 if (subPath.size() > 0) in createStroke()
593 …addSubPath (destPath, subPath, false, width, maxMiterExtensionSquared, jointStyle, endStyle, arrow… in createStroke()
594 subPath.clearQuick(); in createStroke()
635 subPath.add (l); in createStroke()
639 …addSubPath (destPath, subPath, true, width, maxMiterExtensionSquared, jointStyle, endStyle, arrowh… in createStroke()
640 subPath.clearQuick(); in createStroke()
650 if (subPath.size() > 0) in createStroke()
651 …addSubPath (destPath, subPath, false, width, maxMiterExtensionSquared, jointStyle, endStyle, arrow… in createStroke()