Class CGPath

  • All Implemented Interfaces:
    java.lang.AutoCloseable
    Direct Known Subclasses:
    CGMutablePath

    public class CGPath
    extends CFType
    • Constructor Detail

      • CGPath

        protected CGPath()
    • Method Detail

      • createCopyByDashingPath

        public static CGPath createCopyByDashingPath​(CGPath path,
                                                     CGAffineTransform transform,
                                                     double phase,
                                                     double[] lengths)
      • createCopyByDashingPath

        public static CGPath createCopyByDashingPath​(CGPath path,
                                                     CGAffineTransform transform,
                                                     double phase,
                                                     float[] lengths)
      • getClassTypeID

        public static long getClassTypeID()
        Since:
        Available in iOS 2.0 and later.
      • createCopy

        public static CGPath createCopy​(CGPath path)
        Since:
        Available in iOS 2.0 and later.
      • createCopyByTransformingPath

        public static CGPath createCopyByTransformingPath​(CGPath path,
                                                          CGAffineTransform transform)
        Since:
        Available in iOS 5.0 and later.
      • createWithEllipseInRect

        public static CGPath createWithEllipseInRect​(CGRect rect,
                                                     CGAffineTransform transform)
        Since:
        Available in iOS 5.0 and later.
      • createWithRoundedRect

        public static CGPath createWithRoundedRect​(CGRect rect,
                                                   double cornerWidth,
                                                   double cornerHeight,
                                                   CGAffineTransform transform)
        Since:
        Available in iOS 7.0 and later.
      • createCopyByStrokingPath

        public static CGPath createCopyByStrokingPath​(CGPath path,
                                                      CGAffineTransform transform,
                                                      double lineWidth,
                                                      CGLineCap lineCap,
                                                      CGLineJoin lineJoin,
                                                      double miterLimit)
        Since:
        Available in iOS 5.0 and later.
      • equalsTo

        public boolean equalsTo​(CGPath path2)
        Since:
        Available in iOS 2.0 and later.
      • isEmpty

        public boolean isEmpty()
        Since:
        Available in iOS 2.0 and later.
      • isRect

        public boolean isRect​(CGRect rect)
        Since:
        Available in iOS 2.0 and later.
      • getCurrentPoint

        public CGPoint getCurrentPoint()
        Since:
        Available in iOS 2.0 and later.
      • getBoundingBox

        public CGRect getBoundingBox()
        Since:
        Available in iOS 2.0 and later.
      • getPathBoundingBox

        public CGRect getPathBoundingBox()
        Since:
        Available in iOS 4.0 and later.
      • containsPoint

        public boolean containsPoint​(CGAffineTransform m,
                                     CGPoint point,
                                     boolean eoFill)
        Since:
        Available in iOS 2.0 and later.
      • applyWithBlock

        public void applyWithBlock​(org.robovm.objc.block.VoidBlock1<org.robovm.apple.coregraphics.CGPathElement> block)
        Since:
        Available in iOS 11.0 and later.