Class CoreGraphics


  • public final class CoreGraphics
    extends java.lang.Object
    • Field Detail

      • kCGFontIndexMax

        public static final char kCGFontIndexMax
        The maximum allowed value of a CGFontIndex. Always <= USHRT_MAX - 1.
        See Also:
        Constant Field Values
      • kCGFontIndexInvalid

        public static final char kCGFontIndexInvalid
        A value representing an invalid CGFontIndex. Always <= USHRT_MAX.
        See Also:
        Constant Field Values
      • kCGGlyphMax

        public static final char kCGGlyphMax
        The maximum allowed value of a CGGlyph.
        See Also:
        Constant Field Values
      • kCGBitmapByteOrder16Host

        public static final int kCGBitmapByteOrder16Host
        See Also:
        Constant Field Values
      • kCGBitmapByteOrder32Host

        public static final int kCGBitmapByteOrder32Host
        See Also:
        Constant Field Values
    • Method Detail

      • CGPointMake

        public static CGPoint CGPointMake​(double x,
                                          double y)
        Make a point from `(x, y)'.
      • CGSizeMake

        public static CGSize CGSizeMake​(double width,
                                        double height)
        Make a size from `(width, height)'.
      • CGVectorMake

        public static CGVector CGVectorMake​(double dx,
                                            double dy)
        Make a vector from `(dx, dy)'.
      • CGRectMake

        public static CGRect CGRectMake​(double x,
                                        double y,
                                        double width,
                                        double height)
        Make a rect from `(x, y; width, height)'.
      • CGRectGetMinX

        public static double CGRectGetMinX​(CGRect rect)
        Return the leftmost x-value of `rect'. API-Since: 2.0
      • CGRectGetMidX

        public static double CGRectGetMidX​(CGRect rect)
        Return the midpoint x-value of `rect'. API-Since: 2.0
      • CGRectGetMaxX

        public static double CGRectGetMaxX​(CGRect rect)
        Return the rightmost x-value of `rect'. API-Since: 2.0
      • CGRectGetMinY

        public static double CGRectGetMinY​(CGRect rect)
        Return the smallest y-value of `rect'. API-Since: 2.0
      • CGRectGetMidY

        public static double CGRectGetMidY​(CGRect rect)
        Return the midpoint y-value of `rect'. API-Since: 2.0
      • CGRectGetMaxY

        public static double CGRectGetMaxY​(CGRect rect)
        Return the largest y-value of `rect'. API-Since: 2.0
      • CGRectGetWidth

        public static double CGRectGetWidth​(CGRect rect)
        Return the width of `rect'. API-Since: 2.0
      • CGRectGetHeight

        public static double CGRectGetHeight​(CGRect rect)
        Return the height of `rect'. API-Since: 2.0
      • CGPointEqualToPoint

        public static boolean CGPointEqualToPoint​(CGPoint point1,
                                                  CGPoint point2)
        Return true if `point1' and `point2' are the same, false otherwise. API-Since: 2.0
      • CGSizeEqualToSize

        public static boolean CGSizeEqualToSize​(CGSize size1,
                                                CGSize size2)
        Return true if `size1' and `size2' are the same, false otherwise. API-Since: 2.0
      • CGRectEqualToRect

        public static boolean CGRectEqualToRect​(CGRect rect1,
                                                CGRect rect2)
        Return true if `rect1' and `rect2' are the same, false otherwise. API-Since: 2.0
      • CGRectStandardize

        public static CGRect CGRectStandardize​(CGRect rect)
        Standardize `rect' -- i.e., convert it to an equivalent rect which has positive width and height. API-Since: 2.0
      • CGRectIsEmpty

        public static boolean CGRectIsEmpty​(CGRect rect)
        Return true if `rect' is empty (that is, if it has zero width or height), false otherwise. A null rect is defined to be empty. API-Since: 2.0
      • CGRectIsNull

        public static boolean CGRectIsNull​(CGRect rect)
        Return true if `rect' is the null rectangle, false otherwise. API-Since: 2.0
      • CGRectIsInfinite

        public static boolean CGRectIsInfinite​(CGRect rect)
        Return true if `rect' is the infinite rectangle, false otherwise. API-Since: 2.0
      • CGRectInset

        public static CGRect CGRectInset​(CGRect rect,
                                         double dx,
                                         double dy)
        Inset `rect' by `(dx, dy)' -- i.e., offset its origin by `(dx, dy)', and decrease its size by `(2*dx, 2*dy)'. API-Since: 2.0
      • CGRectIntegral

        public static CGRect CGRectIntegral​(CGRect rect)
        Expand `rect' to the smallest rect containing it with integral origin and size. API-Since: 2.0
      • CGRectUnion

        public static CGRect CGRectUnion​(CGRect r1,
                                         CGRect r2)
        Return the union of `r1' and `r2'. API-Since: 2.0
      • CGRectIntersection

        public static CGRect CGRectIntersection​(CGRect r1,
                                                CGRect r2)
        Return the intersection of `r1' and `r2'. This may return a null rect. API-Since: 2.0
      • CGRectOffset

        public static CGRect CGRectOffset​(CGRect rect,
                                          double dx,
                                          double dy)
        Offset `rect' by `(dx, dy)'. API-Since: 2.0
      • CGRectDivide

        public static void CGRectDivide​(CGRect rect,
                                        @NotNull
                                        @NotNull CGRect slice,
                                        @NotNull
                                        @NotNull CGRect remainder,
                                        double amount,
                                        int edge)
        Make two new rectangles, `slice' and `remainder', by dividing `rect' with a line that's parallel to one of its sides, specified by `edge' -- either `CGRectMinXEdge', `CGRectMinYEdge', `CGRectMaxXEdge', or `CGRectMaxYEdge'. The size of `slice' is determined by `amount', which measures the distance from the specified edge. API-Since: 2.0
      • CGRectContainsPoint

        public static boolean CGRectContainsPoint​(CGRect rect,
                                                  CGPoint point)
        Return true if `point' is contained in `rect', false otherwise. API-Since: 2.0
      • CGRectContainsRect

        public static boolean CGRectContainsRect​(CGRect rect1,
                                                 CGRect rect2)
        Return true if `rect2' is contained in `rect1', false otherwise. `rect2' is contained in `rect1' if the union of `rect1' and `rect2' is equal to `rect1'. API-Since: 2.0
      • CGRectIntersectsRect

        public static boolean CGRectIntersectsRect​(CGRect rect1,
                                                   CGRect rect2)
        Return true if `rect1' intersects `rect2', false otherwise. `rect1' intersects `rect2' if the intersection of `rect1' and `rect2' is not the null rect. API-Since: 2.0
      • CGPointCreateDictionaryRepresentation

        @NotNull
        public static @NotNull CFDictionaryRef CGPointCreateDictionaryRepresentation​(CGPoint point)
        Return a dictionary representation of `point'. API-Since: 2.0
      • CGPointMakeWithDictionaryRepresentation

        public static boolean CGPointMakeWithDictionaryRepresentation​(@Nullable
                                                                      @Nullable CFDictionaryRef dict,
                                                                      @Nullable
                                                                      @Nullable CGPoint point)
        Make a CGPoint from the contents of `dict' (presumably returned earlier from `CGPointCreateDictionaryRepresentation') and store the value in `point'. Returns true on success; false otherwise. API-Since: 2.0
      • CGSizeCreateDictionaryRepresentation

        @NotNull
        public static @NotNull CFDictionaryRef CGSizeCreateDictionaryRepresentation​(CGSize size)
        Return a dictionary representation of `size'. API-Since: 2.0
      • CGSizeMakeWithDictionaryRepresentation

        public static boolean CGSizeMakeWithDictionaryRepresentation​(@Nullable
                                                                     @Nullable CFDictionaryRef dict,
                                                                     @Nullable
                                                                     @Nullable CGSize size)
        Make a CGSize from the contents of `dict' (presumably returned earlier from `CGSizeCreateDictionaryRepresentation') and store the value in `size'. Returns true on success; false otherwise. API-Since: 2.0
      • CGRectCreateDictionaryRepresentation

        @NotNull
        public static @NotNull CFDictionaryRef CGRectCreateDictionaryRepresentation​(CGRect arg1)
        Return a dictionary representation of `rect'. API-Since: 2.0
      • CGRectMakeWithDictionaryRepresentation

        public static boolean CGRectMakeWithDictionaryRepresentation​(@Nullable
                                                                     @Nullable CFDictionaryRef dict,
                                                                     @Nullable
                                                                     @Nullable CGRect rect)
        Make a CGRect from the contents of `dict' (presumably returned earlier from `CGRectCreateDictionaryRepresentation') and store the value in `rect'. Returns true on success; false otherwise. API-Since: 2.0
      • __CGPointEqualToPoint

        public static boolean __CGPointEqualToPoint​(CGPoint point1,
                                                    CGPoint point2)
      • __CGSizeEqualToSize

        public static boolean __CGSizeEqualToSize​(CGSize size1,
                                                  CGSize size2)
      • CGAffineTransformMake

        public static CGAffineTransform CGAffineTransformMake​(double a,
                                                              double b,
                                                              double c,
                                                              double d,
                                                              double tx,
                                                              double ty)
        Return the transform [ a b c d tx ty ]. API-Since: 2.0
      • CGAffineTransformMakeTranslation

        public static CGAffineTransform CGAffineTransformMakeTranslation​(double tx,
                                                                         double ty)
        Return a transform which translates by `(tx, ty)': t' = [ 1 0 0 1 tx ty ] API-Since: 2.0
      • CGAffineTransformMakeScale

        public static CGAffineTransform CGAffineTransformMakeScale​(double sx,
                                                                   double sy)
        Return a transform which scales by `(sx, sy)': t' = [ sx 0 0 sy 0 0 ] API-Since: 2.0
      • CGAffineTransformMakeRotation

        public static CGAffineTransform CGAffineTransformMakeRotation​(double angle)
        Return a transform which rotates by `angle' radians: t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ] API-Since: 2.0
      • CGAffineTransformIsIdentity

        public static boolean CGAffineTransformIsIdentity​(CGAffineTransform t)
        Return true if `t' is the identity transform, false otherwise. API-Since: 2.0
      • CGAffineTransformTranslate

        public static CGAffineTransform CGAffineTransformTranslate​(CGAffineTransform t,
                                                                   double tx,
                                                                   double ty)
        Translate `t' by `(tx, ty)' and return the result: t' = [ 1 0 0 1 tx ty ] * t API-Since: 2.0
      • CGAffineTransformScale

        public static CGAffineTransform CGAffineTransformScale​(CGAffineTransform t,
                                                               double sx,
                                                               double sy)
        Scale `t' by `(sx, sy)' and return the result: t' = [ sx 0 0 sy 0 0 ] * t API-Since: 2.0
      • CGAffineTransformRotate

        public static CGAffineTransform CGAffineTransformRotate​(CGAffineTransform t,
                                                                double angle)
        Rotate `t' by `angle' radians and return the result: t' = [ cos(angle) sin(angle) -sin(angle) cos(angle) 0 0 ] * t API-Since: 2.0
      • CGAffineTransformInvert

        public static CGAffineTransform CGAffineTransformInvert​(CGAffineTransform t)
        Invert `t' and return the result. If `t' has zero determinant, then `t' is returned unchanged. API-Since: 2.0
      • CGAffineTransformEqualToTransform

        public static boolean CGAffineTransformEqualToTransform​(CGAffineTransform t1,
                                                                CGAffineTransform t2)
        Return true if `t1' and `t2' are equal, false otherwise. API-Since: 2.0
      • CGPointApplyAffineTransform

        public static CGPoint CGPointApplyAffineTransform​(CGPoint point,
                                                          CGAffineTransform t)
        Transform `point' by `t' and return the result: p' = p * t where p = [ x y 1 ]. API-Since: 2.0
      • CGSizeApplyAffineTransform

        public static CGSize CGSizeApplyAffineTransform​(CGSize size,
                                                        CGAffineTransform t)
        Transform `size' by `t' and return the result: s' = s * t where s = [ width height 0 ]. API-Since: 2.0
      • CGRectApplyAffineTransform

        public static CGRect CGRectApplyAffineTransform​(CGRect rect,
                                                        CGAffineTransform t)
        Transform `rect' by `t' and return the result. Since affine transforms do not preserve rectangles in general, this function returns the smallest rectangle which contains the transformed corner points of `rect'. If `t' consists solely of scales, flips and translations, then the returned rectangle coincides with the rectangle constructed from the four transformed corners. API-Since: 2.0
      • __CGAffineTransformMake

        public static CGAffineTransform __CGAffineTransformMake​(double a,
                                                                double b,
                                                                double c,
                                                                double d,
                                                                double tx,
                                                                double ty)
        Definitions of inline functions. **
      • CGDataProviderGetTypeID

        public static long CGDataProviderGetTypeID()
        Return the CFTypeID for CGDataProviderRefs. API-Since: 2.0
      • CGDataProviderCreateSequential

        @Nullable
        public static @Nullable CGDataProviderRef CGDataProviderCreateSequential​(@Nullable
                                                                                 @Nullable org.moe.natj.general.ptr.VoidPtr info,
                                                                                 @Nullable
                                                                                 @Nullable CGDataProviderSequentialCallbacks callbacks)
        Create a sequential-access data provider using `callbacks' to provide the data. `info' is passed to each of the callback functions. API-Since: 2.0
      • CGDataProviderCreateDirect

        @Nullable
        public static @Nullable CGDataProviderRef CGDataProviderCreateDirect​(@Nullable
                                                                             @Nullable org.moe.natj.general.ptr.VoidPtr info,
                                                                             long size,
                                                                             @Nullable
                                                                             @Nullable CGDataProviderDirectCallbacks callbacks)
        Create a direct-access data provider using `callbacks' to supply `size' bytes of data. `info' is passed to each of the callback functions. The underlying data must not change for the life of the data provider. API-Since: 2.0
      • CGDataProviderCreateWithData

        @Nullable
        public static @Nullable CGDataProviderRef CGDataProviderCreateWithData​(@Nullable
                                                                               @Nullable org.moe.natj.general.ptr.VoidPtr info,
                                                                               @Nullable
                                                                               @Nullable org.moe.natj.general.ptr.ConstVoidPtr data,
                                                                               long size,
                                                                               @Nullable
                                                                               @Nullable CoreGraphics.Function_CGDataProviderCreateWithData releaseData)
        Create a direct-access data provider using `data', an array of `size' bytes. `releaseData' is called when the data provider is freed, and is passed `info' as its first argument. API-Since: 2.0
      • CGDataProviderCreateWithCFData

        @Nullable
        public static @Nullable CGDataProviderRef CGDataProviderCreateWithCFData​(@Nullable
                                                                                 @Nullable CFDataRef data)
        Create a direct-access data provider which reads from `data'. API-Since: 2.0
      • CGDataProviderCreateWithURL

        @Nullable
        public static @Nullable CGDataProviderRef CGDataProviderCreateWithURL​(@Nullable
                                                                              @Nullable CFURLRef url)
        Create a data provider reading from `url'. API-Since: 2.0
      • CGDataProviderCreateWithFilename

        @Nullable
        public static @Nullable CGDataProviderRef CGDataProviderCreateWithFilename​(@Nullable
                                                                                   @Nullable java.lang.String filename)
        Create a data provider reading from `filename'. API-Since: 2.0
      • CGDataProviderRetain

        @Nullable
        public static @Nullable CGDataProviderRef CGDataProviderRetain​(@Nullable
                                                                       @Nullable CGDataProviderRef provider)
        Equivalent to `CFRetain(provider)', but doesn't crash (as CFRetain does) if `provider' is NULL. API-Since: 2.0
      • CGDataProviderRelease

        public static void CGDataProviderRelease​(@Nullable
                                                 @Nullable CGDataProviderRef provider)
        Equivalent to `CFRelease(provider)', but doesn't crash (as CFRelease does) if `provider' is NULL. API-Since: 2.0
      • CGDataProviderCopyData

        @Nullable
        public static @Nullable CFDataRef CGDataProviderCopyData​(@Nullable
                                                                 @Nullable CGDataProviderRef provider)
        Return a copy of the data specified by provider. Returns NULL if a complete copy of the data can't be obtained (for example, if the underlying data is too large to fit in memory). API-Since: 2.0
      • CGColorSpaceCreateDeviceGray

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceCreateDeviceGray()
        Create a DeviceGray color space. API-Since: 2.0
      • CGColorSpaceCreateDeviceRGB

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceCreateDeviceRGB()
        Create a DeviceRGB color space. API-Since: 2.0
      • CGColorSpaceCreateDeviceCMYK

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceCreateDeviceCMYK()
        Create a DeviceCMYK color space. API-Since: 2.0
      • CGColorSpaceCreateWithICCProfile

        @Nullable
        @Deprecated
        public static @Nullable CGColorSpaceRef CGColorSpaceCreateWithICCProfile​(@Nullable
                                                                                 @Nullable CFDataRef data)
        Deprecated.
        Please use `CGColorSpaceCreateWithICCData' API-Since: 2.0 Deprecated-Since: 11.0 Deprecated-Message: No longer supported
      • CGColorSpaceCreateICCBased

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceCreateICCBased​(long nComponents,
                                                                           @Nullable
                                                                           @Nullable org.moe.natj.general.ptr.ConstNFloatPtr range,
                                                                           @Nullable
                                                                           @Nullable CGDataProviderRef profile,
                                                                           @Nullable
                                                                           @Nullable CGColorSpaceRef alternate)
        Create an ICC-based color space. `nComponents' specifies the number of color components in the color space defined by the ICC profile data. This must match the number of components actually in the ICC profile, and must be 1, 3, or 4. `range' is an array of 2*nComponents numbers specifying the minimum and maximum valid values of the corresponding color components, so that for color component k, range[2*k] <= c[k] <= range[2*k+1], where c[k] is the k'th color component. `profile' is a data provider specifying the ICC profile. `alternate' specifies an alternate color space to be used in case the ICC profile is not supported. It must have `nComponents' color components. If `alternate' is NULL, then the color space used will be DeviceGray, DeviceRGB, or DeviceCMYK, depending on whether `nComponents' is 1, 3, or 4, respectively. API-Since: 2.0
      • CGColorSpaceCreateIndexed

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceCreateIndexed​(@Nullable
                                                                          @Nullable CGColorSpaceRef baseSpace,
                                                                          long lastIndex,
                                                                          @Nullable
                                                                          @Nullable java.lang.String colorTable)
        Create an indexed color space. A sample value in an indexed color space is treated as an index into the color table of the color space. `base' specifies the base color space in which the values in the color table are to be interpreted. `lastIndex' is an integer which specifies the maximum valid index value; it must be less than or equal to 255. `colorTable' is an array of m * (lastIndex + 1) bytes, where m is the number of color components in the base color space. Each byte is an unsigned integer in the range 0 to 255 that is scaled to the range of the corresponding color component in the base color space. API-Since: 2.0
      • CGColorSpaceCreatePattern

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceCreatePattern​(@Nullable
                                                                          @Nullable CGColorSpaceRef baseSpace)
        Create a pattern color space. `baseSpace' is the underlying color space of the pattern color space. For colored patterns, `baseSpace' should be NULL; for uncolored patterns, `baseSpace' specifies the color space of colors which will be painted through the pattern. API-Since: 2.0
      • CGColorSpaceCreateWithPlatformColorSpace

        @Nullable
        @Deprecated
        public static @Nullable CGColorSpaceRef CGColorSpaceCreateWithPlatformColorSpace​(@Nullable
                                                                                         @Nullable org.moe.natj.general.ptr.ConstVoidPtr ref)
        Deprecated.
        Please use `CGColorSpaceCreateWithColorSyncProfile' API-Since: 9.0 Deprecated-Since: 15.0 Deprecated-Message: No longer supported
      • CGColorSpaceCreateWithName

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceCreateWithName​(@Nullable
                                                                           @Nullable CFStringRef name)
        Create a color space using `name' as the identifier for the color space. API-Since: 2.0
      • CGColorSpaceRetain

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceRetain​(@Nullable
                                                                   @Nullable CGColorSpaceRef space)
        Equivalent to `CFRetain(space)', except it doesn't crash (as CFRetain does) if `space' is NULL. API-Since: 2.0
      • CGColorSpaceRelease

        public static void CGColorSpaceRelease​(@Nullable
                                               @Nullable CGColorSpaceRef space)
        Equivalent to `CFRelease(space)', except it doesn't crash (as CFRelease does) if `space' is NULL. API-Since: 2.0
      • CGColorSpaceCopyName

        @Nullable
        public static @Nullable CFStringRef CGColorSpaceCopyName​(@Nullable
                                                                 @Nullable CGColorSpaceRef space)
        Same as `CGColorSpaceGetName' but with ownership released to the caller. API-Since: 10.0
      • CGColorSpaceGetTypeID

        public static long CGColorSpaceGetTypeID()
        Return the CFTypeID for CGColorSpaces. API-Since: 2.0
      • CGColorSpaceGetNumberOfComponents

        public static long CGColorSpaceGetNumberOfComponents​(@Nullable
                                                             @Nullable CGColorSpaceRef space)
        Return the number of color components in the color space `space'. API-Since: 2.0
      • CGColorSpaceGetModel

        public static int CGColorSpaceGetModel​(@Nullable
                                               @Nullable CGColorSpaceRef space)
        Return the color space model of `space'. API-Since: 2.0
      • CGColorSpaceGetBaseColorSpace

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceGetBaseColorSpace​(@Nullable
                                                                              @Nullable CGColorSpaceRef space)
        Return the base color space of `space' if `space' is a pattern or indexed color space; otherwise, return NULL. To determine whether a color space is an indexed or pattern color space, use `CGColorSpaceGetModel'. API-Since: 2.0
      • CGColorSpaceGetColorTableCount

        public static long CGColorSpaceGetColorTableCount​(@Nullable
                                                          @Nullable CGColorSpaceRef space)
        Return the number of entries in the color table of `space' if `space' is an indexed color space; otherwise, return 0. To determine whether a color space is an indexed color space, use `CGColorSpaceGetModel'. API-Since: 2.0
      • CGColorSpaceGetColorTable

        public static void CGColorSpaceGetColorTable​(@Nullable
                                                     @Nullable CGColorSpaceRef space,
                                                     @Nullable
                                                     @Nullable org.moe.natj.general.ptr.BytePtr table)
        Copy the entries in the color table of `space' to `table' if `space' is an indexed color space; otherwise, do nothing. The array pointed to by `table' should be at least as large as the number of entries in the color table; the returned data is in the same format as that passed to `CGColorSpaceCreateIndexed'. To determine whether a color space is an indexed color space, use `CGColorSpaceGetModel'. API-Since: 2.0
      • CGColorSpaceCopyICCProfile

        @Nullable
        @Deprecated
        public static @Nullable CFDataRef CGColorSpaceCopyICCProfile​(@Nullable
                                                                     @Nullable CGColorSpaceRef space)
        Deprecated.
        Please use `CGColorSpaceCopyICCData' API-Since: 2.0 Deprecated-Since: 11.0 Deprecated-Message: No longer supported
      • CGColorSpaceCopyICCData

        @Nullable
        public static @Nullable CFDataRef CGColorSpaceCopyICCData​(@Nullable
                                                                  @Nullable CGColorSpaceRef space)
        Return a copy of the ICC profile data of `space', or NULL if the color space doesn't have an ICC profile. API-Since: 10.0
      • CGColorSpaceIsWideGamutRGB

        public static boolean CGColorSpaceIsWideGamutRGB​(@NotNull
                                                         @NotNull CGColorSpaceRef arg1)
        Return true if gamut of the RGB color space is greater than 85% of NTSC gamut API-Since: 10.0
      • CGColorSpaceSupportsOutput

        public static boolean CGColorSpaceSupportsOutput​(@NotNull
                                                         @NotNull CGColorSpaceRef space)
        Return true if `space' can be used as a destination color space; false otherwise. API-Since: 10.0
      • CGPatternGetTypeID

        public static long CGPatternGetTypeID()
        Return the CFTypeID for CGPatternRefs. API-Since: 2.0
      • CGPatternCreate

        @Nullable
        public static @Nullable CGPatternRef CGPatternCreate​(@Nullable
                                                             @Nullable org.moe.natj.general.ptr.VoidPtr info,
                                                             CGRect bounds,
                                                             CGAffineTransform matrix,
                                                             double xStep,
                                                             double yStep,
                                                             int tiling,
                                                             boolean isColored,
                                                             @Nullable
                                                             @Nullable CGPatternCallbacks callbacks)
        Create a pattern. API-Since: 2.0
      • CGPatternRetain

        @Nullable
        public static @Nullable CGPatternRef CGPatternRetain​(@Nullable
                                                             @Nullable CGPatternRef pattern)
        Equivalent to `CFRetain(pattern)', except it doesn't crash (as CF does) if `pattern' is NULL. API-Since: 2.0
      • CGPatternRelease

        public static void CGPatternRelease​(@Nullable
                                            @Nullable CGPatternRef pattern)
        Equivalent to `CFRelease(pattern)', except it doesn't crash (as CF does) if `pattern' is NULL. API-Since: 2.0
      • CGColorCreate

        @Nullable
        public static @Nullable CGColorRef CGColorCreate​(@Nullable
                                                         @Nullable CGColorSpaceRef space,
                                                         @Nullable
                                                         @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)
        Create a color in the color space `space' with color components (including alpha) specified by `components'. `space' may be any color space except a pattern color space. API-Since: 2.0
      • CGColorCreateWithPattern

        @Nullable
        public static @Nullable CGColorRef CGColorCreateWithPattern​(@Nullable
                                                                    @Nullable CGColorSpaceRef space,
                                                                    @Nullable
                                                                    @Nullable CGPatternRef pattern,
                                                                    @Nullable
                                                                    @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)
        Create a color in color space `space' with pattern `pattern' and components `components'. `space' must be a pattern color space. API-Since: 2.0
      • CGColorCreateCopy

        @Nullable
        public static @Nullable CGColorRef CGColorCreateCopy​(@Nullable
                                                             @Nullable CGColorRef color)
        Create a copy of `color'. API-Since: 2.0
      • CGColorCreateCopyWithAlpha

        @Nullable
        public static @Nullable CGColorRef CGColorCreateCopyWithAlpha​(@Nullable
                                                                      @Nullable CGColorRef color,
                                                                      double alpha)
        Create a copy of `color' with alpha set to `alpha'. API-Since: 2.0
      • CGColorCreateCopyByMatchingToColorSpace

        @Nullable
        public static @Nullable CGColorRef CGColorCreateCopyByMatchingToColorSpace​(@Nullable
                                                                                   @Nullable CGColorSpaceRef arg1,
                                                                                   int intent,
                                                                                   @Nullable
                                                                                   @Nullable CGColorRef color,
                                                                                   @Nullable
                                                                                   @Nullable CFDictionaryRef options)
        Create a copy of `color' by matching existing color to destination color space. API-Since: 9.0
      • CGColorRetain

        @Nullable
        public static @Nullable CGColorRef CGColorRetain​(@Nullable
                                                         @Nullable CGColorRef color)
        Equivalent to `CFRetain(color)', except it doesn't crash (as CFRetain does) if `color' is NULL. API-Since: 2.0
      • CGColorRelease

        public static void CGColorRelease​(@Nullable
                                          @Nullable CGColorRef color)
        Equivalent to `CFRelease(color)', except it doesn't crash (as CFRelease does) if `color' is NULL. API-Since: 2.0
      • CGColorEqualToColor

        public static boolean CGColorEqualToColor​(@Nullable
                                                  @Nullable CGColorRef color1,
                                                  @Nullable
                                                  @Nullable CGColorRef color2)
        Return true if `color1' is equal to `color2'; false otherwise. API-Since: 2.0
      • CGColorGetNumberOfComponents

        public static long CGColorGetNumberOfComponents​(@Nullable
                                                        @Nullable CGColorRef color)
        Return the number of color components (including alpha) associated with `color'. API-Since: 2.0
      • CGColorGetComponents

        @Nullable
        public static @Nullable org.moe.natj.general.ptr.ConstNFloatPtr CGColorGetComponents​(@Nullable
                                                                                             @Nullable CGColorRef color)
        Return the color components (including alpha) associated with `color'. API-Since: 2.0
      • CGColorGetAlpha

        public static double CGColorGetAlpha​(@Nullable
                                             @Nullable CGColorRef color)
        Return the alpha component associated with `color'. API-Since: 2.0
      • CGColorGetColorSpace

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorGetColorSpace​(@Nullable
                                                                     @Nullable CGColorRef color)
        Return the color space associated with `color'. API-Since: 2.0
      • CGColorGetPattern

        @Nullable
        public static @Nullable CGPatternRef CGColorGetPattern​(@Nullable
                                                               @Nullable CGColorRef color)
        Return the pattern associated with `color', if it's a color in a pattern color space; NULL otherwise. API-Since: 2.0
      • CGColorGetTypeID

        public static long CGColorGetTypeID()
        Return the CFTypeID for CGColors. API-Since: 2.0
      • CGFontGetTypeID

        public static long CGFontGetTypeID()
        Return the CFTypeID for CGFontRefs. API-Since: 2.0
      • CGFontCreateWithDataProvider

        @Nullable
        public static @Nullable CGFontRef CGFontCreateWithDataProvider​(@Nullable
                                                                       @Nullable CGDataProviderRef provider)
        Return the font defined by the data provided by `provider', or NULL if the font can't be created. API-Since: 2.0
      • CGFontCreateWithFontName

        @Nullable
        public static @Nullable CGFontRef CGFontCreateWithFontName​(@Nullable
                                                                   @Nullable CFStringRef name)
        Return the font identified by `name', corresponding to the font's PostScript name or its full name, or NULL if the font can't be created. API-Since: 2.0
      • CGFontCreateCopyWithVariations

        @Nullable
        public static @Nullable CGFontRef CGFontCreateCopyWithVariations​(@Nullable
                                                                         @Nullable CGFontRef font,
                                                                         @Nullable
                                                                         @Nullable CFDictionaryRef variations)
        Return a font based on `font' with the variation specification dictionary `variations' applied to `font'. A variation specification dictionary contains keys corresponding the variation axis names of the font. Each key is a variation axis name; the value for each key is the value specified for that particular variation axis represented as a CFNumberRef. If a variation axis name is not specified in `variations', then the current value from `font' is used. API-Since: 2.0
      • CGFontRetain

        @Nullable
        public static @Nullable CGFontRef CGFontRetain​(@Nullable
                                                       @Nullable CGFontRef font)
        Equivalent to `CFRetain(font)', except it doesn't crash (as CFRetain does) if `font' is NULL. API-Since: 2.0
      • CGFontRelease

        public static void CGFontRelease​(@Nullable
                                         @Nullable CGFontRef font)
        Equivalent to `CFRelease(font)', except it doesn't crash (as CFRelease does) if `font' is NULL. API-Since: 2.0
      • CGFontGetNumberOfGlyphs

        public static long CGFontGetNumberOfGlyphs​(@Nullable
                                                   @Nullable CGFontRef font)
        Return the number of glyphs in `font'. API-Since: 2.0
      • CGFontGetUnitsPerEm

        public static int CGFontGetUnitsPerEm​(@Nullable
                                              @Nullable CGFontRef font)
        Return the glyph space units/em for `font'. API-Since: 2.0
      • CGFontCopyPostScriptName

        @Nullable
        public static @Nullable CFStringRef CGFontCopyPostScriptName​(@Nullable
                                                                     @Nullable CGFontRef font)
        Return the PostScript name of `font'. API-Since: 2.0
      • CGFontCopyFullName

        @Nullable
        public static @Nullable CFStringRef CGFontCopyFullName​(@Nullable
                                                               @Nullable CGFontRef font)
        Return the "full name" of `font'. API-Since: 2.0
      • CGFontGetAscent

        public static int CGFontGetAscent​(@Nullable
                                          @Nullable CGFontRef font)
        Return the ascent of `font'. The ascent is the maximum distance above the baseline of glyphs in a font. The value is specified in glyph space units. API-Since: 2.0
      • CGFontGetDescent

        public static int CGFontGetDescent​(@Nullable
                                           @Nullable CGFontRef font)
        Return the descent of `font'. The descent is the maximum distance below the baseline of glyphs in a font. The value is specified in glyph space units. API-Since: 2.0
      • CGFontGetLeading

        public static int CGFontGetLeading​(@Nullable
                                           @Nullable CGFontRef font)
        Return the leading of `font'. The leading is the spacing between consecutive lines of text in a font. The value is specified in glyph space units. API-Since: 2.0
      • CGFontGetCapHeight

        public static int CGFontGetCapHeight​(@Nullable
                                             @Nullable CGFontRef font)
        Return the cap height of `font'. The cap height is the distance above the baseline of the top of flat capital letters of glyphs in a font. The value is specified in glyph space units. API-Since: 2.0
      • CGFontGetXHeight

        public static int CGFontGetXHeight​(@Nullable
                                           @Nullable CGFontRef font)
        Return the x-height of `font'. The x-height is the distance above the baseline of the top of flat, non-ascending lowercase letters (such as "x") of glyphs in a font. The value is specified in glyph space units. API-Since: 2.0
      • CGFontGetFontBBox

        public static CGRect CGFontGetFontBBox​(@Nullable
                                               @Nullable CGFontRef font)
        Return the font bounding box of `font'. The font bounding box is the union of all of the bounding boxes for all the glyphs in a font. The value is specified in glyph space units. API-Since: 2.0
      • CGFontGetItalicAngle

        public static double CGFontGetItalicAngle​(@Nullable
                                                  @Nullable CGFontRef font)
        Return the italic angle of `font', measured in degrees counter-clockwise from the vertical. API-Since: 2.0
      • CGFontGetStemV

        public static double CGFontGetStemV​(@Nullable
                                            @Nullable CGFontRef font)
        Return the thickness of the dominant vertical stems of glyphs in `font'. The value is specified in glyph space units. API-Since: 2.0
      • CGFontCopyVariationAxes

        @Nullable
        public static @Nullable CFArrayRef CGFontCopyVariationAxes​(@Nullable
                                                                   @Nullable CGFontRef font)
        Return an array of the variation axis dictionaries for `font'. Each variation axis dictionary contains values for the variation axis keys listed below. This function returns NULL if `font' doesn't support variations. API-Since: 2.0
      • CGFontCopyVariations

        @Nullable
        public static @Nullable CFDictionaryRef CGFontCopyVariations​(@Nullable
                                                                     @Nullable CGFontRef font)
        Return the variation specification dictionary from `font'. This dictionary contains keys corresponding the variation axis names of the font. Each key is a variation axis name; the value for each key is the value specified for that particular variation axis represented as a CFNumberRef. This function returns NULL if `font' doesn't support variations. API-Since: 2.0
      • CGFontGetGlyphAdvances

        public static boolean CGFontGetGlyphAdvances​(@Nullable
                                                     @Nullable CGFontRef font,
                                                     @NotNull
                                                     @NotNull org.moe.natj.general.ptr.ConstCharPtr glyphs,
                                                     long count,
                                                     @NotNull
                                                     @NotNull org.moe.natj.general.ptr.IntPtr advances)
        Get the advance of each glyph in `glyphs', an array of `count' glyphs, and return it in the corresponding entry of `advances', an array of `count' integers. The advances are specified in glyph space. Returns false if advances can't be retrieved for any reason; true otherwise. API-Since: 2.0
      • CGFontGetGlyphBBoxes

        public static boolean CGFontGetGlyphBBoxes​(@Nullable
                                                   @Nullable CGFontRef font,
                                                   @NotNull
                                                   @NotNull org.moe.natj.general.ptr.ConstCharPtr glyphs,
                                                   long count,
                                                   @NotNull
                                                   @NotNull CGRect bboxes)
        Get the bounding box of each glyph in `glyphs', an array of `count' glyphs, and return it in the corresponding entry of `bboxes', an array of `count' rectangles. The bounding boxes are specified in glyph space. Returns false if bounding boxes can't be retrieved for any reason; true otherwise. API-Since: 2.0
      • CGFontGetGlyphWithGlyphName

        public static char CGFontGetGlyphWithGlyphName​(@Nullable
                                                       @Nullable CGFontRef font,
                                                       @Nullable
                                                       @Nullable CFStringRef name)
        Return the glyph associated with `name' in `font'. If `name' isn't found in the font, return 0. API-Since: 2.0
      • CGFontCopyGlyphNameForGlyph

        @Nullable
        public static @Nullable CFStringRef CGFontCopyGlyphNameForGlyph​(@Nullable
                                                                        @Nullable CGFontRef font,
                                                                        char glyph)
        Return the glyph name of `glyph' in `font', or NULL if `glyph' does not appear in `font'. API-Since: 2.0
      • CGFontCanCreatePostScriptSubset

        public static boolean CGFontCanCreatePostScriptSubset​(@Nullable
                                                              @Nullable CGFontRef font,
                                                              int format)
        Return true if a subset in the PostScript format `format' can be created for `font'; false otherwise. API-Since: 2.0
      • CGFontCopyTableTags

        @Nullable
        public static @Nullable CFArrayRef CGFontCopyTableTags​(@Nullable
                                                               @Nullable CGFontRef font)
        Return an array of font table tags in `font'. Each entry in the array is a four-byte value representing a single TrueType or OpenType font table tag. API-Since: 2.0
      • CGFontCopyTableForTag

        @Nullable
        public static @Nullable CFDataRef CGFontCopyTableForTag​(@Nullable
                                                                @Nullable CGFontRef font,
                                                                int tag)
        Return the table in `font' corresponding to `tag', or NULL if no such table exists. API-Since: 2.0
      • CGGradientGetTypeID

        public static long CGGradientGetTypeID()
        Return the CFTypeID for CGGradients. API-Since: 2.0
      • CGGradientCreateWithColorComponents

        @Nullable
        public static @Nullable CGGradientRef CGGradientCreateWithColorComponents​(@Nullable
                                                                                  @Nullable CGColorSpaceRef space,
                                                                                  @Nullable
                                                                                  @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components,
                                                                                  @Nullable
                                                                                  @Nullable org.moe.natj.general.ptr.ConstNFloatPtr locations,
                                                                                  long count)
        Creates a gradient by pairing the color components provided in `components' with locations provided in `locations'. If `locations' is NULL, the first color in `colors' will be at location 0, the last color in `colors' will be at location 1, and intervening colors will be at equal intervals in between. Otherwise, each location in `locations' should be a CGFloat between 0 and 1. Each set of color components should specify a color in the color space `space', which may not any of CIELAB, DeviceN, Indexed or Pattern. The number of locations is specified by `count'; the number of color components is the product of `count' and the number of color components of `space'. If no color is provided for 0 or 1, the gradient will use the color provided at the locations closest to 0 and 1 for those values. API-Since: 2.0
      • CGGradientCreateWithColors

        @Nullable
        public static @Nullable CGGradientRef CGGradientCreateWithColors​(@Nullable
                                                                         @Nullable CGColorSpaceRef space,
                                                                         @Nullable
                                                                         @Nullable CFArrayRef colors,
                                                                         @Nullable
                                                                         @Nullable org.moe.natj.general.ptr.ConstNFloatPtr locations)
        Creates a gradient by pairing the colors provided in `colors' with the locations provided in `locations'. `colors' should be a non-empty array of CGColor objects. The colors may be in any color space other than a pattern color space and are required to be convertible to `space'. If `space' is non-NULL, it may not be any of CIELAB, DeviceN, Indexed or Pattern. Each color will be converted to that color space and the gradient will drawn in that space; otherwise, each color will be converted to and drawn in the "Generic" RGB color space. If `locations' is NULL, the first color in `colors' will be at location 0, the last color in `colors' will be at location 1, and intervening colors will be at equal intervals in between. Otherwise, each location in `locations' should be a CGFloat between 0 and 1; the array of locations should should contain the same number of items as `colors'. If no color is provided for 0 or 1, the gradient will use the color provided at the locations closest to 0 and 1 for those values. API-Since: 2.0
      • CGGradientRetain

        @Nullable
        public static @Nullable CGGradientRef CGGradientRetain​(@Nullable
                                                               @Nullable CGGradientRef gradient)
        Equivalent to `CFRetain' except that it doesn't crash (as `CFRetain' does) if `gradient' is NULL. API-Since: 2.0
      • CGGradientRelease

        public static void CGGradientRelease​(@Nullable
                                             @Nullable CGGradientRef gradient)
        Equivalent to `CFRelease' except that it doesn't crash (as `CFRelease' does) if `gradient' is NULL. API-Since: 2.0
      • CGImageGetTypeID

        public static long CGImageGetTypeID()
        Return the CFTypeID for CGImageRefs. API-Since: 2.0
      • CGImageCreate

        @Nullable
        public static @Nullable CGImageRef CGImageCreate​(long width,
                                                         long height,
                                                         long bitsPerComponent,
                                                         long bitsPerPixel,
                                                         long bytesPerRow,
                                                         @Nullable
                                                         @Nullable CGColorSpaceRef space,
                                                         int bitmapInfo,
                                                         @Nullable
                                                         @Nullable CGDataProviderRef provider,
                                                         @Nullable
                                                         @Nullable org.moe.natj.general.ptr.ConstNFloatPtr decode,
                                                         boolean shouldInterpolate,
                                                         int intent)
        Create an image. API-Since: 2.0
      • CGImageMaskCreate

        @Nullable
        public static @Nullable CGImageRef CGImageMaskCreate​(long width,
                                                             long height,
                                                             long bitsPerComponent,
                                                             long bitsPerPixel,
                                                             long bytesPerRow,
                                                             @Nullable
                                                             @Nullable CGDataProviderRef provider,
                                                             @Nullable
                                                             @Nullable org.moe.natj.general.ptr.ConstNFloatPtr decode,
                                                             boolean shouldInterpolate)
        Create an image mask. Legal values for bits per component are 1, 2, 4 and 8. Bits per pixel must be either the same as bits per component or 8, with exception of 8 bits per component where bits per pixel can be also 16 or 32. API-Since: 2.0
      • CGImageCreateCopy

        @Nullable
        public static @Nullable CGImageRef CGImageCreateCopy​(@Nullable
                                                             @Nullable CGImageRef image)
        Return a copy of `image'. Only the image structure itself is copied; the underlying data is not. API-Since: 2.0
      • CGImageCreateWithJPEGDataProvider

        @Nullable
        public static @Nullable CGImageRef CGImageCreateWithJPEGDataProvider​(@Nullable
                                                                             @Nullable CGDataProviderRef source,
                                                                             @Nullable
                                                                             @Nullable org.moe.natj.general.ptr.ConstNFloatPtr decode,
                                                                             boolean shouldInterpolate,
                                                                             int intent)
        Create an image from `source', a data provider of JPEG-encoded data. API-Since: 2.0
      • CGImageCreateWithPNGDataProvider

        @Nullable
        public static @Nullable CGImageRef CGImageCreateWithPNGDataProvider​(@Nullable
                                                                            @Nullable CGDataProviderRef source,
                                                                            @Nullable
                                                                            @Nullable org.moe.natj.general.ptr.ConstNFloatPtr decode,
                                                                            boolean shouldInterpolate,
                                                                            int intent)
        Create an image using `source', a data provider for PNG-encoded data. API-Since: 2.0
      • CGImageCreateWithImageInRect

        @Nullable
        public static @Nullable CGImageRef CGImageCreateWithImageInRect​(@Nullable
                                                                        @Nullable CGImageRef image,
                                                                        CGRect rect)
        Create an image using the data contained within the subrectangle `rect' of `image'. The new image is created by 1) adjusting `rect' to integral bounds by calling "CGRectIntegral"; 2) intersecting the result with a rectangle with origin (0, 0) and size equal to the size of `image'; 3) referencing the pixels within the resulting rectangle, treating the first pixel of the image data as the origin of the image. If the resulting rectangle is the null rectangle, this function returns NULL. If W and H are the width and height of image, respectively, then the point (0,0) corresponds to the first pixel of the image data; the point (W-1, 0) is the last pixel of the first row of the image data; (0, H-1) is the first pixel of the last row of the image data; and (W-1, H-1) is the last pixel of the last row of the image data. The resulting image retains a reference to the original image, so you may release the original image after calling this function. API-Since: 2.0
      • CGImageCreateWithMask

        @Nullable
        public static @Nullable CGImageRef CGImageCreateWithMask​(@Nullable
                                                                 @Nullable CGImageRef image,
                                                                 @Nullable
                                                                 @Nullable CGImageRef mask)
        Create a new image from `image' masked by `mask', which may be an image mask or an image. If `mask' is an image mask, then it indicates which parts of the context are to be painted with the image when drawn in a context, and which are to be masked out (left unchanged). The source samples of the image mask determine which areas are painted, acting as an "inverse alpha": if the value of a source sample in the image mask is S, then the corresponding region in `image' is blended with the destination using an alpha of (1-S). (For example, if S is 1, then the region is not painted, while if S is 0, the region is fully painted.) If `mask' is an image, then it serves as alpha mask for blending the image onto the destination. The source samples of `mask' determine which areas are painted: if the value of the source sample in mask is S, then the corresponding region in image is blended with the destination with an alpha of S. (For example, if S is 0, then the region is not painted, while if S is 1, the region is fully painted.) The parameter `image' may not be an image mask and may not have an image mask or masking color associated with it. If `mask' is an image, then it must be in a monochrome color space (e.g. DeviceGray, GenericGray, etc...), may not have alpha, and may not itself be masked by an image mask or a masking color. API-Since: 2.0
      • CGImageCreateWithMaskingColors

        @Nullable
        public static @Nullable CGImageRef CGImageCreateWithMaskingColors​(@Nullable
                                                                          @Nullable CGImageRef image,
                                                                          @Nullable
                                                                          @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)
        Create a new image from `image' masked by `components', an array of 2N values { min[1], max[1], ... min[N], max[N] } where N is the number of components in color space of `image'. Any image sample with color value {c[1], ... c[N]} where min[i] <= c[i] <= max[i] for 1 <= i <= N is masked out (that is, not painted). Each value in `components' must be a valid image sample value: if `image' has integral pixel components, then each value of must be in the range [0..2**bitsPerComponent - 1] (where `bitsPerComponent' is the number of bits/component of `image'); if `image' has floating-point pixel components, then each value may be any floating-point number which is a valid color component. The parameter `image' may not be an image mask, and may not already have an image mask or masking color associated with it. API-Since: 2.0
      • CGImageCreateCopyWithColorSpace

        @Nullable
        public static @Nullable CGImageRef CGImageCreateCopyWithColorSpace​(@Nullable
                                                                           @Nullable CGImageRef image,
                                                                           @Nullable
                                                                           @Nullable CGColorSpaceRef space)
        Create a copy of `image', replacing the image's color space with `space'. Returns NULL if `image' is an image mask, or if the number of components of `space' isn't the same as the number of components of the color space of `image'. API-Since: 2.0
      • CGImageRetain

        @Nullable
        public static @Nullable CGImageRef CGImageRetain​(@Nullable
                                                         @Nullable CGImageRef image)
        Equivalent to `CFRetain(image)'. API-Since: 2.0
      • CGImageRelease

        public static void CGImageRelease​(@Nullable
                                          @Nullable CGImageRef image)
        Equivalent to `CFRelease(image)'. API-Since: 2.0
      • CGImageIsMask

        public static boolean CGImageIsMask​(@Nullable
                                            @Nullable CGImageRef image)
        Return true if `image' is an image mask, false otherwise. API-Since: 2.0
      • CGImageGetWidth

        public static long CGImageGetWidth​(@Nullable
                                           @Nullable CGImageRef image)
        Return the width of `image'. API-Since: 2.0
      • CGImageGetHeight

        public static long CGImageGetHeight​(@Nullable
                                            @Nullable CGImageRef image)
        Return the height of `image'. API-Since: 2.0
      • CGImageGetBitsPerComponent

        public static long CGImageGetBitsPerComponent​(@Nullable
                                                      @Nullable CGImageRef image)
        Return the number of bits/component of `image'. API-Since: 2.0
      • CGImageGetBitsPerPixel

        public static long CGImageGetBitsPerPixel​(@Nullable
                                                  @Nullable CGImageRef image)
        Return the number of bits/pixel of `image'. API-Since: 2.0
      • CGImageGetBytesPerRow

        public static long CGImageGetBytesPerRow​(@Nullable
                                                 @Nullable CGImageRef image)
        Return the number of bytes/row of `image'. API-Since: 2.0
      • CGImageGetColorSpace

        @Nullable
        public static @Nullable CGColorSpaceRef CGImageGetColorSpace​(@Nullable
                                                                     @Nullable CGImageRef image)
        Return the color space of `image', or NULL if `image' is an image mask. API-Since: 2.0
      • CGImageGetAlphaInfo

        public static int CGImageGetAlphaInfo​(@Nullable
                                              @Nullable CGImageRef image)
        Return the alpha info of `image'. API-Since: 2.0
      • CGImageGetDataProvider

        @Nullable
        public static @Nullable CGDataProviderRef CGImageGetDataProvider​(@Nullable
                                                                         @Nullable CGImageRef image)
        Return the data provider of `image'. API-Since: 2.0
      • CGImageGetDecode

        @Nullable
        public static @Nullable org.moe.natj.general.ptr.ConstNFloatPtr CGImageGetDecode​(@Nullable
                                                                                         @Nullable CGImageRef image)
        Return the decode array of `image'. API-Since: 2.0
      • CGImageGetShouldInterpolate

        public static boolean CGImageGetShouldInterpolate​(@Nullable
                                                          @Nullable CGImageRef image)
        Return the interpolation parameter of `image'. API-Since: 2.0
      • CGImageGetRenderingIntent

        public static int CGImageGetRenderingIntent​(@Nullable
                                                    @Nullable CGImageRef image)
        Return the rendering intent of `image'. API-Since: 2.0
      • CGImageGetBitmapInfo

        public static int CGImageGetBitmapInfo​(@Nullable
                                               @Nullable CGImageRef image)
        Return the bitmap info of `image'. API-Since: 2.0
      • CGImageGetUTType

        @Nullable
        public static @Nullable CFStringRef CGImageGetUTType​(@Nullable
                                                             @Nullable CGImageRef image)
        Return the UTType of `image'. API-Since: 9.0
      • CGPathGetTypeID

        public static long CGPathGetTypeID()
        Return the CFTypeID for CGPathRefs. API-Since: 2.0
      • CGPathCreateMutable

        @NotNull
        public static @NotNull CGMutablePathRef CGPathCreateMutable()
        Create a mutable path. API-Since: 2.0
      • CGPathCreateCopy

        @Nullable
        public static @Nullable CGPathRef CGPathCreateCopy​(@Nullable
                                                           @Nullable CGPathRef path)
        Create a copy of `path'. API-Since: 2.0
      • CGPathCreateCopyByTransformingPath

        @Nullable
        public static @Nullable CGPathRef CGPathCreateCopyByTransformingPath​(@Nullable
                                                                             @Nullable CGPathRef path,
                                                                             @Nullable
                                                                             @Nullable CGAffineTransform transform)
        Create a copy of `path' transformed by `transform'. API-Since: 5.0
      • CGPathCreateMutableCopy

        @Nullable
        public static @Nullable CGMutablePathRef CGPathCreateMutableCopy​(@Nullable
                                                                         @Nullable CGPathRef path)
        Create a mutable copy of `path'. API-Since: 2.0
      • CGPathCreateMutableCopyByTransformingPath

        @Nullable
        public static @Nullable CGMutablePathRef CGPathCreateMutableCopyByTransformingPath​(@Nullable
                                                                                           @Nullable CGPathRef path,
                                                                                           @Nullable
                                                                                           @Nullable CGAffineTransform transform)
        Create a mutable copy of `path' transformed by `transform'. API-Since: 5.0
      • CGPathCreateWithRect

        @NotNull
        public static @NotNull CGPathRef CGPathCreateWithRect​(CGRect rect,
                                                              @Nullable
                                                              @Nullable CGAffineTransform transform)
        Return a path representing a rectangle bounded by `rect'. The rectangle forms a complete subpath of the path --- that is, it begins with a "move to" and ends with a "close subpath" --- oriented in the clockwise direction. If `transform' is non-NULL, then the lines representing the rectangle will be transformed by `transform' before they are added to the path. API-Since: 4.0
      • CGPathCreateWithEllipseInRect

        @NotNull
        public static @NotNull CGPathRef CGPathCreateWithEllipseInRect​(CGRect rect,
                                                                       @Nullable
                                                                       @Nullable CGAffineTransform transform)
        Return a path representing an ellipse bounded by `rect'. The ellipse is approximated by a sequence of Bézier curves. The center of the ellipse is the midpoint of `rect'. If `rect' is square, then the ellipse will be circular with radius equal to one-half the width (equivalently, one-half the height) of `rect'. If `rect' is rectangular, then the major- and minor-axes will be the `width' and `height' of rect. The ellipse forms a complete subpath of the path --- that is, it begins with a "move to" and ends with a "close subpath" --- oriented in the clockwise direction. If `transform' is non-NULL, then the constructed Bézier curves representing the ellipse will be transformed by `transform' before they are added to the path. API-Since: 5.0
      • CGPathCreateWithRoundedRect

        @NotNull
        public static @NotNull CGPathRef CGPathCreateWithRoundedRect​(CGRect rect,
                                                                     double cornerWidth,
                                                                     double cornerHeight,
                                                                     @Nullable
                                                                     @Nullable CGAffineTransform transform)
        Return a path representing a rounded rectangle. The rounded rectangle coincides with the edges of `rect'. Each corner is consists of one-quarter of an ellipse with axes equal to `cornerWidth' and `cornerHeight'. The rounded rectangle forms a complete subpath of the path --- that is, it begins with a "move to" and ends with a "close subpath" --- oriented in the clockwise direction. If `transform' is non-NULL, then the path elements representing the rounded rectangle will be transformed by `transform' before they are added to the path. API-Since: 7.0
      • CGPathAddRoundedRect

        public static void CGPathAddRoundedRect​(@Nullable
                                                @Nullable CGMutablePathRef path,
                                                @Nullable
                                                @Nullable CGAffineTransform transform,
                                                CGRect rect,
                                                double cornerWidth,
                                                double cornerHeight)
        Add a rounded rectangle to `path'. The rounded rectangle coincides with the edges of `rect'. Each corner is consists of one-quarter of an ellipse with axes equal to `cornerWidth' and `cornerHeight'. The rounded rectangle forms a complete subpath of the path --- that is, it begins with a "move to" and ends with a "close subpath" --- oriented in the clockwise direction. If `transform' is non-NULL, then the path elements representing the rounded rectangle will be transformed by `transform' before they are added to the path. API-Since: 7.0
      • CGPathCreateCopyByDashingPath

        @Nullable
        public static @Nullable CGPathRef CGPathCreateCopyByDashingPath​(@Nullable
                                                                        @Nullable CGPathRef path,
                                                                        @Nullable
                                                                        @Nullable CGAffineTransform transform,
                                                                        double phase,
                                                                        @Nullable
                                                                        @Nullable org.moe.natj.general.ptr.ConstNFloatPtr lengths,
                                                                        long count)
        Create a dashed path from `path'. The parameters `phase', `lengths', and `count' have the same meaning as the corresponding parameters for `CGContextSetLineDash'. If `transform' is non-NULL, then the elements of the constructed path will be transformed by `transform' before they are added to the path. API-Since: 5.0
      • CGPathCreateCopyByStrokingPath

        @Nullable
        public static @Nullable CGPathRef CGPathCreateCopyByStrokingPath​(@Nullable
                                                                         @Nullable CGPathRef path,
                                                                         @Nullable
                                                                         @Nullable CGAffineTransform transform,
                                                                         double lineWidth,
                                                                         int lineCap,
                                                                         int lineJoin,
                                                                         double miterLimit)
        Create a stroked path from `path'. The parameters `lineWidth', `lineCap', `lineJoin', and `miterLimit' have the same meaning as the corresponding CGContext parameters. If `transform' is non-NULL, then the elements of the constructed path will be transformed by `transform' before they are added to the path. API-Since: 5.0
      • CGPathRetain

        @Nullable
        public static @Nullable CGPathRef CGPathRetain​(@Nullable
                                                       @Nullable CGPathRef path)
        Equivalent to `CFRetain(path)', except it doesn't crash (as CFRetain does) if `path' is NULL. API-Since: 2.0
      • CGPathRelease

        public static void CGPathRelease​(@Nullable
                                         @Nullable CGPathRef path)
        Equivalent to `CFRelease(path)', except it doesn't crash (as CFRelease does) if `path' is NULL. API-Since: 2.0
      • CGPathEqualToPath

        public static boolean CGPathEqualToPath​(@Nullable
                                                @Nullable CGPathRef path1,
                                                @Nullable
                                                @Nullable CGPathRef path2)
        Return true if `path1' is equal to `path2'; false otherwise. API-Since: 2.0
      • CGPathMoveToPoint

        public static void CGPathMoveToPoint​(@Nullable
                                             @Nullable CGMutablePathRef path,
                                             @Nullable
                                             @Nullable CGAffineTransform m,
                                             double x,
                                             double y)
        Move the current point to `(x, y)' in `path' and begin a new subpath. If `m' is non-NULL, then transform `(x, y)' by `m' first. API-Since: 2.0
      • CGPathAddLineToPoint

        public static void CGPathAddLineToPoint​(@Nullable
                                                @Nullable CGMutablePathRef path,
                                                @Nullable
                                                @Nullable CGAffineTransform m,
                                                double x,
                                                double y)
        Append a straight line segment from the current point to `(x, y)' in `path' and move the current point to `(x, y)'. If `m' is non-NULL, then transform `(x, y)' by `m' first. API-Since: 2.0
      • CGPathAddQuadCurveToPoint

        public static void CGPathAddQuadCurveToPoint​(@Nullable
                                                     @Nullable CGMutablePathRef path,
                                                     @Nullable
                                                     @Nullable CGAffineTransform m,
                                                     double cpx,
                                                     double cpy,
                                                     double x,
                                                     double y)
        Append a quadratic curve from the current point to `(x, y)' with control point `(cpx, cpy)' in `path' and move the current point to `(x, y)'. If `m' is non-NULL, then transform all points by `m' first. API-Since: 2.0
      • CGPathAddCurveToPoint

        public static void CGPathAddCurveToPoint​(@Nullable
                                                 @Nullable CGMutablePathRef path,
                                                 @Nullable
                                                 @Nullable CGAffineTransform m,
                                                 double cp1x,
                                                 double cp1y,
                                                 double cp2x,
                                                 double cp2y,
                                                 double x,
                                                 double y)
        Append a cubic Bézier curve from the current point to `(x,y)' with control points `(cp1x, cp1y)' and `(cp2x, cp2y)' in `path' and move the current point to `(x, y)'. If `m' is non-NULL, then transform all points by `m' first. API-Since: 2.0
      • CGPathCloseSubpath

        public static void CGPathCloseSubpath​(@Nullable
                                              @Nullable CGMutablePathRef path)
        Append a line from the current point to the starting point of the current subpath of `path' and end the subpath. API-Since: 2.0
      • CGPathAddRect

        public static void CGPathAddRect​(@Nullable
                                         @Nullable CGMutablePathRef path,
                                         @Nullable
                                         @Nullable CGAffineTransform m,
                                         CGRect rect)
        Add `rect' to `path'. If `m' is non-NULL, then first transform `rect' by `m' before adding it to `path'. API-Since: 2.0
      • CGPathAddRects

        public static void CGPathAddRects​(@Nullable
                                          @Nullable CGMutablePathRef path,
                                          @Nullable
                                          @Nullable CGAffineTransform m,
                                          @Nullable
                                          @Nullable CGRect rects,
                                          long count)
        Add each rectangle specified by `rects', an array of `count' CGRects, to `path'. If `m' is non-NULL, then first transform each rectangle by `m' before adding it to `path'. API-Since: 2.0
      • CGPathAddLines

        public static void CGPathAddLines​(@Nullable
                                          @Nullable CGMutablePathRef path,
                                          @Nullable
                                          @Nullable CGAffineTransform m,
                                          @Nullable
                                          @Nullable CGPoint points,
                                          long count)
        Move to the first element of `points', an array of `count' CGPoints, and append a line from each point to the next point in `points'. If `m' is non-NULL, then first transform each point by `m'. API-Since: 2.0
      • CGPathAddEllipseInRect

        public static void CGPathAddEllipseInRect​(@Nullable
                                                  @Nullable CGMutablePathRef path,
                                                  @Nullable
                                                  @Nullable CGAffineTransform m,
                                                  CGRect rect)
        Add an ellipse (an oval) inside `rect' to `path'. The ellipse is approximated by a sequence of Bézier curves. The center of the ellipse is the midpoint of `rect'. If `rect' is square, then the ellipse will be circular with radius equal to one-half the width (equivalently, one-half the height) of `rect'. If `rect' is rectangular, then the major- and minor-axes will be the `width' and `height' of rect. The ellipse forms a complete subpath of `path' --- that is, it begins with a "move to" and ends with a "close subpath" --- oriented in the clockwise direction. If `m' is non-NULL, then the constructed Bézier curves representing the ellipse will be transformed by `m' before they are added to `path'. API-Since: 2.0
      • CGPathAddRelativeArc

        public static void CGPathAddRelativeArc​(@Nullable
                                                @Nullable CGMutablePathRef path,
                                                @Nullable
                                                @Nullable CGAffineTransform matrix,
                                                double x,
                                                double y,
                                                double radius,
                                                double startAngle,
                                                double delta)
        Add an arc of a circle to `path', possibly preceded by a straight line segment. The arc is approximated by a sequence of Bézier curves. The center of the arc is `(x,y)'; `radius' is its radius. `startAngle' is the angle to the first endpoint of the arc, measured counter-clockwise from the positive x-axis. `startAngle + delta' is the angle to the second endpoint of the arc. If `delta' is positive, then the arc is drawn counter-clockwise; if negative, clockwise. `startAngle' and `delta' are measured in radians. If `matrix' is non-NULL, then the constructed Bézier curves representing the arc will be transformed by `matrix' before they are added to the path. API-Since: 5.0
      • CGPathAddArc

        public static void CGPathAddArc​(@Nullable
                                        @Nullable CGMutablePathRef path,
                                        @Nullable
                                        @Nullable CGAffineTransform m,
                                        double x,
                                        double y,
                                        double radius,
                                        double startAngle,
                                        double endAngle,
                                        boolean clockwise)
        Add an arc of a circle to `path', possibly preceded by a straight line segment. The arc is approximated by a sequence of Bézier curves. `(x, y)' is the center of the arc; `radius' is its radius; `startAngle' is the angle to the first endpoint of the arc; `endAngle' is the angle to the second endpoint of the arc; and `clockwise' is true if the arc is to be drawn clockwise, false otherwise. `startAngle' and `endAngle' are measured in radians. If `m' is non-NULL, then the constructed Bézier curves representing the arc will be transformed by `m' before they are added to `path'. Note that using values very near 2π can be problematic. For example, setting `startAngle' to 0, `endAngle' to 2π, and `clockwise' to true will draw nothing. (It's easy to see this by considering, instead of 0 and 2π, the values ε and 2π - ε, where ε is very small.) Due to round-off error, however, it's possible that passing the value `2 * M_PI' to approximate 2π will numerically equal to 2π + δ, for some small δ; this will cause a full circle to be drawn. If you want a full circle to be drawn clockwise, you should set `startAngle' to 2π, `endAngle' to 0, and `clockwise' to true. This avoids the instability problems discussed above. API-Since: 2.0
      • CGPathAddArcToPoint

        public static void CGPathAddArcToPoint​(@Nullable
                                               @Nullable CGMutablePathRef path,
                                               @Nullable
                                               @Nullable CGAffineTransform m,
                                               double x1,
                                               double y1,
                                               double x2,
                                               double y2,
                                               double radius)
        Add an arc of a circle to `path', possibly preceded by a straight line segment. The arc is approximated by a sequence of Bézier curves. `radius' is the radius of the arc. The resulting arc is tangent to the line from the current point of `path' to `(x1, y1)', and the line from `(x1, y1)' to `(x2, y2)'. If `m' is non-NULL, then the constructed Bézier curves representing the arc will be transformed by `m' before they are added to `path'. API-Since: 2.0
      • CGPathAddPath

        public static void CGPathAddPath​(@Nullable
                                         @Nullable CGMutablePathRef path1,
                                         @Nullable
                                         @Nullable CGAffineTransform m,
                                         @Nullable
                                         @Nullable CGPathRef path2)
        Add `path2' to `path1'. If `m' is non-NULL, then the points in `path2' will be transformed by `m' before they are added to `path1'. API-Since: 2.0
      • CGPathIsEmpty

        public static boolean CGPathIsEmpty​(@Nullable
                                            @Nullable CGPathRef path)
        Return true if `path' contains no elements, false otherwise. API-Since: 2.0
      • CGPathIsRect

        public static boolean CGPathIsRect​(@Nullable
                                           @Nullable CGPathRef path,
                                           @Nullable
                                           @Nullable CGRect rect)
        Return true if `path' represents a rectangle, false otherwise. API-Since: 2.0
      • CGPathGetCurrentPoint

        public static CGPoint CGPathGetCurrentPoint​(@Nullable
                                                    @Nullable CGPathRef path)
        Return the current point of the current subpath of `path'. If there is no current point, then return CGPointZero. API-Since: 2.0
      • CGPathGetBoundingBox

        public static CGRect CGPathGetBoundingBox​(@Nullable
                                                  @Nullable CGPathRef path)
        Return the bounding box of `path'. The bounding box is the smallest rectangle completely enclosing all points in the path, including control points for Bézier cubic and quadratic curves. If the path is empty, then return `CGRectNull'. API-Since: 2.0
      • CGPathGetPathBoundingBox

        public static CGRect CGPathGetPathBoundingBox​(@Nullable
                                                      @Nullable CGPathRef path)
        Return the path bounding box of `path'. The path bounding box is the smallest rectangle completely enclosing all points in the path, *not* including control points for Bézier cubic and quadratic curves. If the path is empty, then return `CGRectNull'. API-Since: 4.0
      • CGPathContainsPoint

        public static boolean CGPathContainsPoint​(@Nullable
                                                  @Nullable CGPathRef path,
                                                  @Nullable
                                                  @Nullable CGAffineTransform m,
                                                  CGPoint point,
                                                  boolean eoFill)
        Return true if `point' is contained in `path'; false otherwise. A point is contained in a path if it is inside the painted region when the path is filled; if `eoFill' is true, then the even-odd fill rule is used to evaluate the painted region of the path, otherwise, the winding-number fill rule is used. If `m' is non-NULL, then the point is transformed by `m' before determining whether the path contains it. API-Since: 2.0
      • CGPathApply

        public static void CGPathApply​(@Nullable
                                       @Nullable CGPathRef path,
                                       @Nullable
                                       @Nullable org.moe.natj.general.ptr.VoidPtr info,
                                       @Nullable
                                       @Nullable CoreGraphics.Function_CGPathApply function)
        For element of `path', call `function', passing it the path element and `info'. API-Since: 2.0
      • CGPDFObjectGetType

        public static int CGPDFObjectGetType​(@Nullable
                                             @Nullable CGPDFObjectRef object)
        Return the type of `object'. API-Since: 2.0
      • CGPDFObjectGetValue

        public static boolean CGPDFObjectGetValue​(@Nullable
                                                  @Nullable CGPDFObjectRef object,
                                                  int type,
                                                  @Nullable
                                                  @Nullable org.moe.natj.general.ptr.VoidPtr value)
        Get the value of `object'. If the type of `object' is equal to `type', then copy the value of `object' to `value' (if it's non-NULL) and return true. Otherwise, if the type of `object' is `kCGPDFObjectTypeInteger' and `type' is equal to `kCGPDFObjectTypeReal', then convert the value of `object' to floating point and copy the result to `value' (if it's non-NULL) and return true. Otherwise, return false. API-Since: 2.0
      • CGPDFStreamGetDictionary

        @Nullable
        public static @Nullable CGPDFDictionaryRef CGPDFStreamGetDictionary​(@Nullable
                                                                            @Nullable CGPDFStreamRef stream)
        Return the dictionary of `stream'. API-Since: 2.0
      • CGPDFStreamCopyData

        @Nullable
        public static @Nullable CFDataRef CGPDFStreamCopyData​(@Nullable
                                                              @Nullable CGPDFStreamRef stream,
                                                              @Nullable
                                                              @Nullable org.moe.natj.general.ptr.IntPtr format)
        Return the data of `stream'. API-Since: 2.0
      • CGPDFStringGetLength

        public static long CGPDFStringGetLength​(@Nullable
                                                @Nullable CGPDFStringRef string)
        Return the length of `string'. API-Since: 2.0
      • CGPDFStringGetBytePtr

        @Nullable
        public static @Nullable java.lang.String CGPDFStringGetBytePtr​(@Nullable
                                                                       @Nullable CGPDFStringRef string)
        Return a pointer to the bytes of `string'. API-Since: 2.0
      • CGPDFStringCopyTextString

        @Nullable
        public static @Nullable CFStringRef CGPDFStringCopyTextString​(@Nullable
                                                                      @Nullable CGPDFStringRef string)
        Return a CFString representing `string' as a "text string". See Section 3.8.1 "Text Strings", PDF Reference: Adobe PDF version 1.6 (5th ed.) for more information. API-Since: 2.0
      • CGPDFStringCopyDate

        @Nullable
        public static @Nullable CFDateRef CGPDFStringCopyDate​(@Nullable
                                                              @Nullable CGPDFStringRef string)
        Convert `string' to a CFDate. See Section 3.8.3 "Dates", PDF Reference: Adobe PDF version 1.6 (5th ed.) for more information. API-Since: 2.0
      • CGPDFArrayGetCount

        public static long CGPDFArrayGetCount​(@Nullable
                                              @Nullable CGPDFArrayRef array)
        API-Since: 2.0
      • CGPDFArrayGetObject

        public static boolean CGPDFArrayGetObject​(@Nullable
                                                  @Nullable CGPDFArrayRef array,
                                                  long index,
                                                  @Nullable
                                                  @Nullable org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)
        Look up the object at `index' in `array' and return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFArrayGetNull

        public static boolean CGPDFArrayGetNull​(@Nullable
                                                @Nullable CGPDFArrayRef array,
                                                long index)
        Look up the object at `index' in `array' and, if it's a null, return true; otherwise, return false. API-Since: 2.0
      • CGPDFArrayGetBoolean

        public static boolean CGPDFArrayGetBoolean​(@Nullable
                                                   @Nullable CGPDFArrayRef array,
                                                   long index,
                                                   @Nullable
                                                   @Nullable org.moe.natj.general.ptr.BytePtr value)
        Look up the object at `index' in `array' and, if it's a boolean, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFArrayGetInteger

        public static boolean CGPDFArrayGetInteger​(@Nullable
                                                   @Nullable CGPDFArrayRef array,
                                                   long index,
                                                   @Nullable
                                                   @Nullable org.moe.natj.general.ptr.NIntPtr value)
        Look up the object at `index' in `array' and, if it's an integer, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFArrayGetNumber

        public static boolean CGPDFArrayGetNumber​(@Nullable
                                                  @Nullable CGPDFArrayRef array,
                                                  long index,
                                                  @Nullable
                                                  @Nullable org.moe.natj.general.ptr.NFloatPtr value)
        Look up the object at `index' in `array' and, if it's a number (real or integer), return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFArrayGetName

        public static boolean CGPDFArrayGetName​(@Nullable
                                                @Nullable CGPDFArrayRef array,
                                                long index,
                                                @Nullable
                                                @Nullable java.lang.String[] value)
        Look up the object at `index' in `array' and, if it's a name, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFArrayGetString

        public static boolean CGPDFArrayGetString​(@Nullable
                                                  @Nullable CGPDFArrayRef array,
                                                  long index,
                                                  @Nullable
                                                  @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStringRef> value)
        Look up the object at `index' in `array' and, if it's a string, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFArrayGetArray

        public static boolean CGPDFArrayGetArray​(@Nullable
                                                 @Nullable CGPDFArrayRef array,
                                                 long index,
                                                 @Nullable
                                                 @Nullable org.moe.natj.general.ptr.Ptr<CGPDFArrayRef> value)
        Look up the object at `index' in `array' and, if it's an array, return it in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFArrayGetDictionary

        public static boolean CGPDFArrayGetDictionary​(@Nullable
                                                      @Nullable CGPDFArrayRef array,
                                                      long index,
                                                      @Nullable
                                                      @Nullable org.moe.natj.general.ptr.Ptr<CGPDFDictionaryRef> value)
        Look up the object at `index' in `array' and, if it's a dictionary, return it in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFArrayGetStream

        public static boolean CGPDFArrayGetStream​(@Nullable
                                                  @Nullable CGPDFArrayRef array,
                                                  long index,
                                                  @Nullable
                                                  @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStreamRef> value)
        Look up the object at `index' in `array' and, if it's a stream, return it in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFDictionaryGetCount

        public static long CGPDFDictionaryGetCount​(@Nullable
                                                   @Nullable CGPDFDictionaryRef dict)
        Return the number of entries in `dictionary'. API-Since: 2.0
      • CGPDFDictionaryGetObject

        public static boolean CGPDFDictionaryGetObject​(@Nullable
                                                       @Nullable CGPDFDictionaryRef dict,
                                                       @NotNull
                                                       @NotNull java.lang.String key,
                                                       @Nullable
                                                       @Nullable org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)
        Look up the object associated with `key' in `dict' and return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFDictionaryGetBoolean

        public static boolean CGPDFDictionaryGetBoolean​(@Nullable
                                                        @Nullable CGPDFDictionaryRef dict,
                                                        @NotNull
                                                        @NotNull java.lang.String key,
                                                        @Nullable
                                                        @Nullable org.moe.natj.general.ptr.BytePtr value)
        Look up the object associated with `key' in `dict' and, if it's a boolean, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFDictionaryGetInteger

        public static boolean CGPDFDictionaryGetInteger​(@Nullable
                                                        @Nullable CGPDFDictionaryRef dict,
                                                        @NotNull
                                                        @NotNull java.lang.String key,
                                                        @Nullable
                                                        @Nullable org.moe.natj.general.ptr.NIntPtr value)
        Look up the object associated with `key' in `dict' and, if it's an integer, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFDictionaryGetNumber

        public static boolean CGPDFDictionaryGetNumber​(@Nullable
                                                       @Nullable CGPDFDictionaryRef dict,
                                                       @NotNull
                                                       @NotNull java.lang.String key,
                                                       @Nullable
                                                       @Nullable org.moe.natj.general.ptr.NFloatPtr value)
        Look up the object associated with `key' in `dict' and, if it's a number (real or integer), return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFDictionaryGetName

        public static boolean CGPDFDictionaryGetName​(@Nullable
                                                     @Nullable CGPDFDictionaryRef dict,
                                                     @NotNull
                                                     @NotNull java.lang.String key,
                                                     @Nullable
                                                     @Nullable java.lang.String[] value)
        Look up the object associated with `key' in `dict' and, if it's a name, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFDictionaryGetString

        public static boolean CGPDFDictionaryGetString​(@Nullable
                                                       @Nullable CGPDFDictionaryRef dict,
                                                       @NotNull
                                                       @NotNull java.lang.String key,
                                                       @Nullable
                                                       @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStringRef> value)
        Look up the object associated with `key' in `dict' and, if it's a string, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFDictionaryGetArray

        public static boolean CGPDFDictionaryGetArray​(@Nullable
                                                      @Nullable CGPDFDictionaryRef dict,
                                                      @NotNull
                                                      @NotNull java.lang.String key,
                                                      @Nullable
                                                      @Nullable org.moe.natj.general.ptr.Ptr<CGPDFArrayRef> value)
        Look up the object associated with `key' in `dict' and, if it's an array, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFDictionaryGetDictionary

        public static boolean CGPDFDictionaryGetDictionary​(@Nullable
                                                           @Nullable CGPDFDictionaryRef dict,
                                                           @NotNull
                                                           @NotNull java.lang.String key,
                                                           @Nullable
                                                           @Nullable org.moe.natj.general.ptr.Ptr<CGPDFDictionaryRef> value)
        Look up the object associated with `key' in `dict' and, if it's a dictionary, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFDictionaryGetStream

        public static boolean CGPDFDictionaryGetStream​(@Nullable
                                                       @Nullable CGPDFDictionaryRef dict,
                                                       @NotNull
                                                       @NotNull java.lang.String key,
                                                       @Nullable
                                                       @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStreamRef> value)
        Look up the object associated with `key' in `dict' and, if it's a stream, return the result in `value'. Return true on success; false otherwise. API-Since: 2.0
      • CGPDFDictionaryApplyFunction

        public static void CGPDFDictionaryApplyFunction​(@Nullable
                                                        @Nullable CGPDFDictionaryRef dict,
                                                        @Nullable
                                                        @Nullable CoreGraphics.Function_CGPDFDictionaryApplyFunction function,
                                                        @Nullable
                                                        @Nullable org.moe.natj.general.ptr.VoidPtr info)
        Enumerate all of the keys in `dict', calling `function' once for each key/value pair. Passes the current key, the associated value, and `info' to `function'. API-Since: 2.0
      • CGPDFPageRetain

        @Nullable
        public static @Nullable CGPDFPageRef CGPDFPageRetain​(@Nullable
                                                             @Nullable CGPDFPageRef page)
        Equivalent to `CFRetain(page)', except it doesn't crash (as CFRetain does) if `page' is NULL. API-Since: 2.0
      • CGPDFPageRelease

        public static void CGPDFPageRelease​(@Nullable
                                            @Nullable CGPDFPageRef page)
        Equivalent to `CFRelease(page)', except it doesn't crash (as CFRelease does) if `page' is NULL. API-Since: 2.0
      • CGPDFPageGetDocument

        @Nullable
        public static @Nullable CGPDFDocumentRef CGPDFPageGetDocument​(@Nullable
                                                                      @Nullable CGPDFPageRef page)
        Return the document of `page'. API-Since: 2.0
      • CGPDFPageGetPageNumber

        public static long CGPDFPageGetPageNumber​(@Nullable
                                                  @Nullable CGPDFPageRef page)
        Return the page number of `page'. API-Since: 2.0
      • CGPDFPageGetBoxRect

        public static CGRect CGPDFPageGetBoxRect​(@Nullable
                                                 @Nullable CGPDFPageRef page,
                                                 int box)
        Return the rectangle associated with `box' in `page'. This is the value of the corresponding entry (such as /MediaBox, /ArtBox, and so on) in the page's dictionary. Return CGRectNull if `page' is not a valid CGPDFPageRef or `box' is not a valid CGPDFBox. API-Since: 2.0
      • CGPDFPageGetRotationAngle

        public static int CGPDFPageGetRotationAngle​(@Nullable
                                                    @Nullable CGPDFPageRef page)
        Return the rotation angle (in degrees) of `page'. This is the value of the /Rotate entry in the page's dictionary. Return 0 if `page' is not a valid CGPDFPageRef. API-Since: 2.0
      • CGPDFPageGetDrawingTransform

        public static CGAffineTransform CGPDFPageGetDrawingTransform​(@Nullable
                                                                     @Nullable CGPDFPageRef page,
                                                                     int box,
                                                                     CGRect rect,
                                                                     int rotate,
                                                                     boolean preserveAspectRatio)
        Return a transform mapping the box specified by `box' to `rect' as follows: - Compute the effective rect by intersecting the rect associated with `box' and the /MediaBox entry of the page. - Rotate the effective rect according to the page's /Rotate entry. - Center the resulting rect on `rect'. If `rotation' is non-zero, then the rect will rotated clockwise by `rotation' degrees. `rotation' must be a multiple of 90. - Scale the rect down, if necessary, so that it coincides with the edges of `rect'. If `preserveAspectRatio' is true, then the final rect will coincide with the edges of `rect' only in the more restrictive dimension. API-Since: 2.0
      • CGPDFPageGetDictionary

        @Nullable
        public static @Nullable CGPDFDictionaryRef CGPDFPageGetDictionary​(@Nullable
                                                                          @Nullable CGPDFPageRef page)
        Return the dictionary of `page'. API-Since: 2.0
      • CGPDFPageGetTypeID

        public static long CGPDFPageGetTypeID()
        Return the CFTypeID for CGPDFPageRefs. API-Since: 2.0
      • CGPDFDocumentCreateWithProvider

        @Nullable
        public static @Nullable CGPDFDocumentRef CGPDFDocumentCreateWithProvider​(@Nullable
                                                                                 @Nullable CGDataProviderRef provider)
        Create a PDF document, using `provider' to obtain the document's data. API-Since: 2.0
      • CGPDFDocumentCreateWithURL

        @Nullable
        public static @Nullable CGPDFDocumentRef CGPDFDocumentCreateWithURL​(@Nullable
                                                                            @Nullable CFURLRef url)
        Create a PDF document from `url'. API-Since: 2.0
      • CGPDFDocumentRetain

        @Nullable
        public static @Nullable CGPDFDocumentRef CGPDFDocumentRetain​(@Nullable
                                                                     @Nullable CGPDFDocumentRef document)
        Equivalent to `CFRetain(document)', except it doesn't crash (as CFRetain does) if `document' is NULL. API-Since: 2.0
      • CGPDFDocumentRelease

        public static void CGPDFDocumentRelease​(@Nullable
                                                @Nullable CGPDFDocumentRef document)
        Equivalent to `CFRelease(document)', except it doesn't crash (as CFRelease does) if `document' is NULL. API-Since: 2.0
      • CGPDFDocumentGetVersion

        public static void CGPDFDocumentGetVersion​(@Nullable
                                                   @Nullable CGPDFDocumentRef document,
                                                   @NotNull
                                                   @NotNull org.moe.natj.general.ptr.IntPtr majorVersion,
                                                   @NotNull
                                                   @NotNull org.moe.natj.general.ptr.IntPtr minorVersion)
        Return the major and minor version numbers of `document'. API-Since: 2.0
      • CGPDFDocumentIsEncrypted

        public static boolean CGPDFDocumentIsEncrypted​(@Nullable
                                                       @Nullable CGPDFDocumentRef document)
        Return true if the PDF file associated with `document' is encrypted; false otherwise. If the PDF file is encrypted, then a password must be supplied before certain operations are enabled; different passwords may enable different operations. API-Since: 2.0
      • CGPDFDocumentUnlockWithPassword

        public static boolean CGPDFDocumentUnlockWithPassword​(@Nullable
                                                              @Nullable CGPDFDocumentRef document,
                                                              @NotNull
                                                              @NotNull java.lang.String password)
        Use `password' to decrypt `document' and grant permission for certain operations. Returns true if `password' is a valid password; false otherwise. API-Since: 2.0
      • CGPDFDocumentIsUnlocked

        public static boolean CGPDFDocumentIsUnlocked​(@Nullable
                                                      @Nullable CGPDFDocumentRef document)
        Return true if `document' is unlocked; false otherwise. A document is unlocked if it isn't encrypted, or if it is encrypted and a valid password was specified with `CGPDFDocumentUnlockWithPassword'. API-Since: 2.0
      • CGPDFDocumentAllowsPrinting

        public static boolean CGPDFDocumentAllowsPrinting​(@Nullable
                                                          @Nullable CGPDFDocumentRef document)
        Return true if `document' allows printing; false otherwise. Typically, this function returns false only if the document is encrypted and the document's current password doesn't grant permission to perform printing. API-Since: 2.0
      • CGPDFDocumentAllowsCopying

        public static boolean CGPDFDocumentAllowsCopying​(@Nullable
                                                         @Nullable CGPDFDocumentRef document)
        Return true if `document' allows copying; false otherwise. Typically, this function returns false only if the document is encrypted and the document's current password doesn't grant permission to perform copying. API-Since: 2.0
      • CGPDFDocumentGetNumberOfPages

        public static long CGPDFDocumentGetNumberOfPages​(@Nullable
                                                         @Nullable CGPDFDocumentRef document)
        Return the number of pages in `document'. API-Since: 2.0
      • CGPDFDocumentGetPage

        @Nullable
        public static @Nullable CGPDFPageRef CGPDFDocumentGetPage​(@Nullable
                                                                  @Nullable CGPDFDocumentRef document,
                                                                  long pageNumber)
        Return the page corresponding to `pageNumber', or NULL if no such page exists in the document. Pages are numbered starting at 1. API-Since: 2.0
      • CGPDFDocumentGetCatalog

        @Nullable
        public static @Nullable CGPDFDictionaryRef CGPDFDocumentGetCatalog​(@Nullable
                                                                           @Nullable CGPDFDocumentRef document)
        Return the document catalog of `document'. API-Since: 2.0
      • CGPDFDocumentGetInfo

        @Nullable
        public static @Nullable CGPDFDictionaryRef CGPDFDocumentGetInfo​(@Nullable
                                                                        @Nullable CGPDFDocumentRef document)
        Return the info dictionary of `document'. API-Since: 2.0
      • CGPDFDocumentGetID

        @Nullable
        public static @Nullable CGPDFArrayRef CGPDFDocumentGetID​(@Nullable
                                                                 @Nullable CGPDFDocumentRef document)
        Return the "file identifier" array of `document'. API-Since: 2.0
      • CGPDFDocumentGetTypeID

        public static long CGPDFDocumentGetTypeID()
        Return the CFTypeID for CGPDFDocumentRefs. API-Since: 2.0
      • CGFunctionGetTypeID

        public static long CGFunctionGetTypeID()
        Return the CFTypeID for CGFunctionRefs. API-Since: 2.0
      • CGFunctionCreate

        @Nullable
        public static @Nullable CGFunctionRef CGFunctionCreate​(@Nullable
                                                               @Nullable org.moe.natj.general.ptr.VoidPtr info,
                                                               long domainDimension,
                                                               @Nullable
                                                               @Nullable org.moe.natj.general.ptr.ConstNFloatPtr domain,
                                                               long rangeDimension,
                                                               @Nullable
                                                               @Nullable org.moe.natj.general.ptr.ConstNFloatPtr range,
                                                               @Nullable
                                                               @Nullable CGFunctionCallbacks callbacks)
        Create a CGFunction using `callbacks' to evaluate the function. `info' is passed to each of the callback functions. `domainDimension' is the number of input values to the function; `rangeDimension' is the number of output values from the function. `domain' is an array of 2M values, where M is the number of input values. For each k from 0 to M-1, domain[2*k] must be less than or equal to domain[2*k+1]. The k'th input value (in[k]) will be clipped to lie in this interval, so that domain[2*k] <= in[k] <= domain[2*k+1]. If `domain' is NULL, then the input values will not be clipped. However, it's strongly recommended that `domain' be specified; each domain interval should specify reasonable values for the minimum and maximum in that dimension. `range' is an array of 2N values, where N is the number of output values. For each k from 0 to N-1, range[2*k] must be less than or equal to range[2*k+1]. The k'th output value (out[k]) will be clipped to lie in this interval, so that range[2*k] <= out[k] <= range[2*k+1]. If `range' is NULL, then the output values will not be clipped. However, it's strongly recommended that `range' be specified; each range interval should specify reasonable values for the minimum and maximum in that dimension. The contents of the callbacks structure is copied, so, for example, a pointer to a structure on the stack can be passed to this function. API-Since: 2.0
      • CGFunctionRetain

        @Nullable
        public static @Nullable CGFunctionRef CGFunctionRetain​(@Nullable
                                                               @Nullable CGFunctionRef function)
        Equivalent to `CFRetain(function)', except it doesn't crash (as CFRetain does) if `function' is NULL. API-Since: 2.0
      • CGFunctionRelease

        public static void CGFunctionRelease​(@Nullable
                                             @Nullable CGFunctionRef function)
        Equivalent to `CFRelease(function)', except it doesn't crash (as CFRelease does) if `function' is NULL. API-Since: 2.0
      • CGShadingGetTypeID

        public static long CGShadingGetTypeID()
        Return the CFTypeID for CGShadingRefs. API-Since: 2.0
      • CGShadingCreateAxial

        @Nullable
        public static @Nullable CGShadingRef CGShadingCreateAxial​(@Nullable
                                                                  @Nullable CGColorSpaceRef space,
                                                                  CGPoint start,
                                                                  CGPoint end,
                                                                  @Nullable
                                                                  @Nullable CGFunctionRef function,
                                                                  boolean extendStart,
                                                                  boolean extendEnd)
        Create a shading defining a color blend which varies along a linear axis between two endpoints and extends indefinitely perpendicular to that axis. The shading may optionally extend beyond either endpoint by continuing the boundary colors indefinitely. The color values are specified in the color space `space'. The starting point of the axis is `start' and the ending point of the axis is `end', both specified in the shading's target coordinate space. The shading function, specified by `function', is a 1-in, N-out function, where N is one more (for alpha) than the number of color components in the shading's color space. The input value 0 corresponds to the color at the starting point of the shading; the input value 1 corresponds to the color at the ending point of the shading. If `extendStart' is true, then the shading will extend beyond the starting point of the axis. If `extendEnd' is true, then the shading will extend beyond the ending point of the axis. API-Since: 2.0
      • CGShadingCreateRadial

        @Nullable
        public static @Nullable CGShadingRef CGShadingCreateRadial​(@Nullable
                                                                   @Nullable CGColorSpaceRef space,
                                                                   CGPoint start,
                                                                   double startRadius,
                                                                   CGPoint end,
                                                                   double endRadius,
                                                                   @Nullable
                                                                   @Nullable CGFunctionRef function,
                                                                   boolean extendStart,
                                                                   boolean extendEnd)
        Create a shading defining a color blend which varies between two circles. The shading may optionally extend beyond either circle by continuing the boundary colors. The color values are specified in the color space `space'. The starting circle has radius `startRadius' and is centered at `start', specified in the shading's target coordinate space. The ending circle has radius `endRadius' and is centered at `end', specified in the shading's target coordinate space. The shading function, specified by `function', is a 1-in, N-out function, where N is one more (for alpha) than the number of color components in the shading's color space. The input value 0 corresponds to the color of the starting circle; the input value 1 corresponds to the color of the ending circle. If `extendStart' is true, then the shading will extend beyond the starting circle. If `extendEnd' is true, then the shading will extend beyond the ending circle. API-Since: 2.0
      • CGShadingRetain

        @Nullable
        public static @Nullable CGShadingRef CGShadingRetain​(@Nullable
                                                             @Nullable CGShadingRef shading)
        Equivalent to `CFRetain(shading)', except it doesn't crash (as CFRetain does) if `shading' is NULL. API-Since: 2.0
      • CGShadingRelease

        public static void CGShadingRelease​(@Nullable
                                            @Nullable CGShadingRef shading)
        Equivalent to `CFRelease(shading)', except it doesn't crash (as CFRelease does) if `shading' is NULL. API-Since: 2.0
      • CGContextGetTypeID

        public static long CGContextGetTypeID()
        Return the CFTypeID for CGContextRefs. API-Since: 2.0
      • CGContextSaveGState

        public static void CGContextSaveGState​(@Nullable
                                               @Nullable CGContextRef c)
        Push a copy of the current graphics state onto the graphics state stack. Note that the path is not considered part of the graphics state, and is not saved. API-Since: 2.0
      • CGContextRestoreGState

        public static void CGContextRestoreGState​(@Nullable
                                                  @Nullable CGContextRef c)
        Restore the current graphics state from the one on the top of the graphics state stack, popping the graphics state stack in the process. API-Since: 2.0
      • CGContextScaleCTM

        public static void CGContextScaleCTM​(@Nullable
                                             @Nullable CGContextRef c,
                                             double sx,
                                             double sy)
        Scale the current graphics state's transformation matrix (the CTM) by `(sx, sy)'. API-Since: 2.0
      • CGContextTranslateCTM

        public static void CGContextTranslateCTM​(@Nullable
                                                 @Nullable CGContextRef c,
                                                 double tx,
                                                 double ty)
        Translate the current graphics state's transformation matrix (the CTM) by `(tx, ty)'. API-Since: 2.0
      • CGContextRotateCTM

        public static void CGContextRotateCTM​(@Nullable
                                              @Nullable CGContextRef c,
                                              double angle)
        Rotate the current graphics state's transformation matrix (the CTM) by `angle' radians. API-Since: 2.0
      • CGContextConcatCTM

        public static void CGContextConcatCTM​(@Nullable
                                              @Nullable CGContextRef c,
                                              CGAffineTransform transform)
        Concatenate the current graphics state's transformation matrix (the CTM) with the affine transform `transform'. API-Since: 2.0
      • CGContextGetCTM

        public static CGAffineTransform CGContextGetCTM​(@Nullable
                                                        @Nullable CGContextRef c)
        Return the current graphics state's transformation matrix. Returns CGAffineTransformIdentity in case of inavlid context. API-Since: 2.0
      • CGContextSetLineWidth

        public static void CGContextSetLineWidth​(@Nullable
                                                 @Nullable CGContextRef c,
                                                 double width)
        Set the line width in the current graphics state to `width'. API-Since: 2.0
      • CGContextSetLineCap

        public static void CGContextSetLineCap​(@Nullable
                                               @Nullable CGContextRef c,
                                               int cap)
        Set the line cap in the current graphics state to `cap'. API-Since: 2.0
      • CGContextSetLineJoin

        public static void CGContextSetLineJoin​(@Nullable
                                                @Nullable CGContextRef c,
                                                int join)
        Set the line join in the current graphics state to `join'. API-Since: 2.0
      • CGContextSetMiterLimit

        public static void CGContextSetMiterLimit​(@Nullable
                                                  @Nullable CGContextRef c,
                                                  double limit)
        Set the miter limit in the current graphics state to `limit'. API-Since: 2.0
      • CGContextSetLineDash

        public static void CGContextSetLineDash​(@Nullable
                                                @Nullable CGContextRef c,
                                                double phase,
                                                @Nullable
                                                @Nullable org.moe.natj.general.ptr.ConstNFloatPtr lengths,
                                                long count)
        Set the line dash patttern in the current graphics state of `c'. API-Since: 2.0
      • CGContextSetFlatness

        public static void CGContextSetFlatness​(@Nullable
                                                @Nullable CGContextRef c,
                                                double flatness)
        Set the path flatness parameter in the current graphics state of `c' to `flatness'. API-Since: 2.0
      • CGContextSetAlpha

        public static void CGContextSetAlpha​(@Nullable
                                             @Nullable CGContextRef c,
                                             double alpha)
        Set the alpha value in the current graphics state of `c' to `alpha'. API-Since: 2.0
      • CGContextSetBlendMode

        public static void CGContextSetBlendMode​(@Nullable
                                                 @Nullable CGContextRef c,
                                                 int mode)
        Set the blend mode of `context' to `mode'. API-Since: 2.0
      • CGContextBeginPath

        public static void CGContextBeginPath​(@Nullable
                                              @Nullable CGContextRef c)
        Begin a new path. The old path is discarded. API-Since: 2.0
      • CGContextMoveToPoint

        public static void CGContextMoveToPoint​(@Nullable
                                                @Nullable CGContextRef c,
                                                double x,
                                                double y)
        Start a new subpath at point `(x, y)' in the context's path. API-Since: 2.0
      • CGContextAddLineToPoint

        public static void CGContextAddLineToPoint​(@Nullable
                                                   @Nullable CGContextRef c,
                                                   double x,
                                                   double y)
        Append a straight line segment from the current point to `(x, y)'. API-Since: 2.0
      • CGContextAddCurveToPoint

        public static void CGContextAddCurveToPoint​(@Nullable
                                                    @Nullable CGContextRef c,
                                                    double cp1x,
                                                    double cp1y,
                                                    double cp2x,
                                                    double cp2y,
                                                    double x,
                                                    double y)
        Append a cubic Bezier curve from the current point to `(x,y)', with control points `(cp1x, cp1y)' and `(cp2x, cp2y)'. API-Since: 2.0
      • CGContextAddQuadCurveToPoint

        public static void CGContextAddQuadCurveToPoint​(@Nullable
                                                        @Nullable CGContextRef c,
                                                        double cpx,
                                                        double cpy,
                                                        double x,
                                                        double y)
        Append a quadratic curve from the current point to `(x, y)', with control point `(cpx, cpy)'. API-Since: 2.0
      • CGContextClosePath

        public static void CGContextClosePath​(@Nullable
                                              @Nullable CGContextRef c)
        Close the current subpath of the context's path. API-Since: 2.0
      • CGContextAddRect

        public static void CGContextAddRect​(@Nullable
                                            @Nullable CGContextRef c,
                                            CGRect rect)
        Add a single rect to the context's path. API-Since: 2.0
      • CGContextAddRects

        public static void CGContextAddRects​(@Nullable
                                             @Nullable CGContextRef c,
                                             @Nullable
                                             @Nullable CGRect rects,
                                             long count)
        Add a set of rects to the context's path. API-Since: 2.0
      • CGContextAddLines

        public static void CGContextAddLines​(@Nullable
                                             @Nullable CGContextRef c,
                                             @Nullable
                                             @Nullable CGPoint points,
                                             long count)
        Add a set of lines to the context's path. API-Since: 2.0
      • CGContextAddEllipseInRect

        public static void CGContextAddEllipseInRect​(@Nullable
                                                     @Nullable CGContextRef c,
                                                     CGRect rect)
        Add an ellipse inside `rect' to the current path of `context'. See the function `CGPathAddEllipseInRect' for more information on how the path for the ellipse is constructed. API-Since: 2.0
      • CGContextAddArc

        public static void CGContextAddArc​(@Nullable
                                           @Nullable CGContextRef c,
                                           double x,
                                           double y,
                                           double radius,
                                           double startAngle,
                                           double endAngle,
                                           int clockwise)
        Add an arc of a circle to the context's path, possibly preceded by a straight line segment. `(x, y)' is the center of the arc; `radius' is its radius; `startAngle' is the angle to the first endpoint of the arc; `endAngle' is the angle to the second endpoint of the arc; and `clockwise' is 1 if the arc is to be drawn clockwise, 0 otherwise. `startAngle' and `endAngle' are measured in radians. API-Since: 2.0
      • CGContextAddArcToPoint

        public static void CGContextAddArcToPoint​(@Nullable
                                                  @Nullable CGContextRef c,
                                                  double x1,
                                                  double y1,
                                                  double x2,
                                                  double y2,
                                                  double radius)
        Add an arc of a circle to the context's path, possibly preceded by a straight line segment. `radius' is the radius of the arc. The arc is tangent to the line from the current point to `(x1, y1)', and the line from `(x1, y1)' to `(x2, y2)'. API-Since: 2.0
      • CGContextAddPath

        public static void CGContextAddPath​(@Nullable
                                            @Nullable CGContextRef c,
                                            @Nullable
                                            @Nullable CGPathRef path)
        Add `path' to the path of context. The points in `path' are transformed by the CTM of context before they are added. API-Since: 2.0
      • CGContextReplacePathWithStrokedPath

        public static void CGContextReplacePathWithStrokedPath​(@Nullable
                                                               @Nullable CGContextRef c)
        Replace the path in `context' with the stroked version of the path, using the parameters of `context' to calculate the stroked path. The resulting path is created such that filling it with the appropriate color will produce the same results as stroking the original path. You can use this path in the same way you can use the path of any context; for example, you can clip to the stroked version of a path by calling this function followed by a call to "CGContextClip". API-Since: 2.0
      • CGContextIsPathEmpty

        public static boolean CGContextIsPathEmpty​(@Nullable
                                                   @Nullable CGContextRef c)
        Return true if the path of `context' contains no elements, false otherwise. API-Since: 2.0
      • CGContextGetPathCurrentPoint

        public static CGPoint CGContextGetPathCurrentPoint​(@Nullable
                                                           @Nullable CGContextRef c)
        Return the current point of the current subpath of the path of `context'. API-Since: 2.0
      • CGContextGetPathBoundingBox

        public static CGRect CGContextGetPathBoundingBox​(@Nullable
                                                         @Nullable CGContextRef c)
        Return the bounding box of the path of `context'. The bounding box is the smallest rectangle completely enclosing all points in the path, including control points for Bezier and quadratic curves. API-Since: 2.0
      • CGContextCopyPath

        @Nullable
        public static @Nullable CGPathRef CGContextCopyPath​(@Nullable
                                                            @Nullable CGContextRef c)
        Return a copy of the path of `context'. The returned path is specified in the current user space of `context'. API-Since: 2.0
      • CGContextPathContainsPoint

        public static boolean CGContextPathContainsPoint​(@Nullable
                                                         @Nullable CGContextRef c,
                                                         CGPoint point,
                                                         int mode)
        Return true if `point' is contained in the current path of `context'. A point is contained within a context's path if it is inside the painted region when the path is stroked or filled with opaque colors using the path drawing mode `mode'. `point' is specified is user space. API-Since: 2.0
      • CGContextDrawPath

        public static void CGContextDrawPath​(@Nullable
                                             @Nullable CGContextRef c,
                                             int mode)
        Draw the context's path using drawing mode `mode'. API-Since: 2.0
      • CGContextFillPath

        public static void CGContextFillPath​(@Nullable
                                             @Nullable CGContextRef c)
        Fill the context's path using the winding-number fill rule. Any open subpath of the path is implicitly closed. API-Since: 2.0
      • CGContextEOFillPath

        public static void CGContextEOFillPath​(@Nullable
                                               @Nullable CGContextRef c)
        Fill the context's path using the even-odd fill rule. Any open subpath of the path is implicitly closed. API-Since: 2.0
      • CGContextStrokePath

        public static void CGContextStrokePath​(@Nullable
                                               @Nullable CGContextRef c)
        Stroke the context's path. API-Since: 2.0
      • CGContextFillRect

        public static void CGContextFillRect​(@Nullable
                                             @Nullable CGContextRef c,
                                             CGRect rect)
        Fill `rect' with the current fill color. API-Since: 2.0
      • CGContextFillRects

        public static void CGContextFillRects​(@Nullable
                                              @Nullable CGContextRef c,
                                              @Nullable
                                              @Nullable CGRect rects,
                                              long count)
        Fill `rects', an array of `count' CGRects, with the current fill color. API-Since: 2.0
      • CGContextStrokeRect

        public static void CGContextStrokeRect​(@Nullable
                                               @Nullable CGContextRef c,
                                               CGRect rect)
        Stroke `rect' with the current stroke color and the current linewidth. API-Since: 2.0
      • CGContextStrokeRectWithWidth

        public static void CGContextStrokeRectWithWidth​(@Nullable
                                                        @Nullable CGContextRef c,
                                                        CGRect rect,
                                                        double width)
        Stroke `rect' with the current stroke color, using `width' as the the line width. API-Since: 2.0
      • CGContextClearRect

        public static void CGContextClearRect​(@Nullable
                                              @Nullable CGContextRef c,
                                              CGRect rect)
        Clear `rect' (that is, set the region within the rect to transparent). API-Since: 2.0
      • CGContextFillEllipseInRect

        public static void CGContextFillEllipseInRect​(@Nullable
                                                      @Nullable CGContextRef c,
                                                      CGRect rect)
        Fill an ellipse (an oval) inside `rect'. API-Since: 2.0
      • CGContextStrokeEllipseInRect

        public static void CGContextStrokeEllipseInRect​(@Nullable
                                                        @Nullable CGContextRef c,
                                                        CGRect rect)
        Stroke an ellipse (an oval) inside `rect'. API-Since: 2.0
      • CGContextStrokeLineSegments

        public static void CGContextStrokeLineSegments​(@Nullable
                                                       @Nullable CGContextRef c,
                                                       @Nullable
                                                       @Nullable CGPoint points,
                                                       long count)
        Stroke a sequence of line segments one after another in `context'. The line segments are specified by `points', an array of `count' CGPoints. This function is equivalent to CGContextBeginPath(context); for (k = 0; k < count; k += 2) { CGContextMoveToPoint(context, s[k].x, s[k].y); CGContextAddLineToPoint(context, s[k+1].x, s[k+1].y); } CGContextStrokePath(context); API-Since: 2.0
      • CGContextClip

        public static void CGContextClip​(@Nullable
                                         @Nullable CGContextRef c)
        Intersect the context's path with the current clip path and use the resulting path as the clip path for subsequent rendering operations. Use the winding-number fill rule for deciding what's inside the path. API-Since: 2.0
      • CGContextEOClip

        public static void CGContextEOClip​(@Nullable
                                           @Nullable CGContextRef c)
        Intersect the context's path with the current clip path and use the resulting path as the clip path for subsequent rendering operations. Use the even-odd fill rule for deciding what's inside the path. API-Since: 2.0
      • CGContextClipToMask

        public static void CGContextClipToMask​(@Nullable
                                               @Nullable CGContextRef c,
                                               CGRect rect,
                                               @Nullable
                                               @Nullable CGImageRef mask)
        Add `mask' transformed to `rect' to the clipping area of `context'. The mask, which may be either an image mask or an image, is mapped into the specified rectangle and intersected with the current clipping area of the context. If `mask' is an image mask, then it clips in a manner identical to the behavior if it were used with "CGContextDrawImage": it indicates an area to be masked out (left unchanged) when drawing. The source samples of the image mask determine which points of the clipping area are changed, acting as an "inverse alpha": if the value of a source sample in the image mask is S, then the corresponding point in the current clipping area will be multiplied by an alpha of (1-S). (For example, if S is 1, then the point in the clipping area becomes clear, while if S is 0, the point in the clipping area is unchanged. If `mask' is an image, then it serves as alpha mask and is blended with the current clipping area. The source samples of mask determine which points of the clipping area are changed: if the value of the source sample in mask is S, then the corresponding point in the current clipping area will be multiplied by an alpha of S. (For example, if S is 0, then the point in the clipping area becomes clear, while if S is 1, the point in the clipping area is unchanged. If `mask' is an image, then its color space must be of kCGColorSpaceModelMonochrome model, may not have alpha, and may not be masked by an image mask or masking color. API-Since: 2.0
      • CGContextGetClipBoundingBox

        public static CGRect CGContextGetClipBoundingBox​(@Nullable
                                                         @Nullable CGContextRef c)
        Return the bounding box of the clip path of `c' in user space. The bounding box is the smallest rectangle completely enclosing all points in the clip. API-Since: 2.0
      • CGContextClipToRect

        public static void CGContextClipToRect​(@Nullable
                                               @Nullable CGContextRef c,
                                               CGRect rect)
        Intersect the current clipping path with `rect'. Note that this function resets the context's path to the empty path. API-Since: 2.0
      • CGContextClipToRects

        public static void CGContextClipToRects​(@Nullable
                                                @Nullable CGContextRef c,
                                                @NotNull
                                                @NotNull CGRect rects,
                                                long count)
        Intersect the current clipping path with the clipping region formed by creating a path consisting of all rects in `rects'. Note that this function resets the context's path to the empty path. API-Since: 2.0
      • CGContextSetFillColorWithColor

        public static void CGContextSetFillColorWithColor​(@Nullable
                                                          @Nullable CGContextRef c,
                                                          @Nullable
                                                          @Nullable CGColorRef color)
        Set the current fill color in the context `c' to `color'. API-Since: 2.0
      • CGContextSetStrokeColorWithColor

        public static void CGContextSetStrokeColorWithColor​(@Nullable
                                                            @Nullable CGContextRef c,
                                                            @Nullable
                                                            @Nullable CGColorRef color)
        Set the current stroke color in the context `c' to `color'. API-Since: 2.0
      • CGContextSetFillColorSpace

        public static void CGContextSetFillColorSpace​(@Nullable
                                                      @Nullable CGContextRef c,
                                                      @Nullable
                                                      @Nullable CGColorSpaceRef space)
        Set the current fill color space in `context' to `space'. As a side-effect, set the fill color to a default value appropriate for the color space. API-Since: 2.0
      • CGContextSetStrokeColorSpace

        public static void CGContextSetStrokeColorSpace​(@Nullable
                                                        @Nullable CGContextRef c,
                                                        @Nullable
                                                        @Nullable CGColorSpaceRef space)
        Set the current stroke color space in `context' to `space'. As a side-effect, set the stroke color to a default value appropriate for the color space. API-Since: 2.0
      • CGContextSetFillColor

        public static void CGContextSetFillColor​(@Nullable
                                                 @Nullable CGContextRef c,
                                                 @Nullable
                                                 @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)
        Set the components of the current fill color in `context' to the values specifed by `components'. The number of elements in `components' must be one greater than the number of components in the current fill color space (N color components + 1 alpha component). The current fill color space must not be a pattern color space. API-Since: 2.0
      • CGContextSetStrokeColor

        public static void CGContextSetStrokeColor​(@Nullable
                                                   @Nullable CGContextRef c,
                                                   @Nullable
                                                   @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)
        Set the components of the current stroke color in `context' to the values specifed by `components'. The number of elements in `components' must be one greater than the number of components in the current stroke color space (N color components + 1 alpha component). The current stroke color space must not be a pattern color space. API-Since: 2.0
      • CGContextSetFillPattern

        public static void CGContextSetFillPattern​(@Nullable
                                                   @Nullable CGContextRef c,
                                                   @Nullable
                                                   @Nullable CGPatternRef pattern,
                                                   @Nullable
                                                   @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)
        Set the components of the current fill color in `context' to the values specifed by `components', and set the current fill pattern to `pattern'. The number of elements in `components' must be one greater than the number of components in the current fill color space (N color components + 1 alpha component). The current fill color space must be a pattern color space. API-Since: 2.0
      • CGContextSetStrokePattern

        public static void CGContextSetStrokePattern​(@Nullable
                                                     @Nullable CGContextRef c,
                                                     @Nullable
                                                     @Nullable CGPatternRef pattern,
                                                     @Nullable
                                                     @Nullable org.moe.natj.general.ptr.ConstNFloatPtr components)
        Set the components of the current stroke color in `context' to the values specifed by `components', and set the current stroke pattern to `pattern'. The number of elements in `components' must be one greater than the number of components in the current stroke color space (N color components + 1 alpha component). The current stroke color space must be a pattern color space. API-Since: 2.0
      • CGContextSetPatternPhase

        public static void CGContextSetPatternPhase​(@Nullable
                                                    @Nullable CGContextRef c,
                                                    CGSize phase)
        Set the pattern phase in the current graphics state of `context' to `phase'. API-Since: 2.0
      • CGContextSetGrayFillColor

        public static void CGContextSetGrayFillColor​(@Nullable
                                                     @Nullable CGContextRef c,
                                                     double gray,
                                                     double alpha)
        Set the current fill color space in `context' to `DeviceGray' and set the components of the current fill color to `(gray, alpha)'. API-Since: 2.0
      • CGContextSetGrayStrokeColor

        public static void CGContextSetGrayStrokeColor​(@Nullable
                                                       @Nullable CGContextRef c,
                                                       double gray,
                                                       double alpha)
        Set the current stroke color space in `context' to `DeviceGray' and set the components of the current stroke color to `(gray, alpha)'. API-Since: 2.0
      • CGContextSetRGBFillColor

        public static void CGContextSetRGBFillColor​(@Nullable
                                                    @Nullable CGContextRef c,
                                                    double red,
                                                    double green,
                                                    double blue,
                                                    double alpha)
        Set the current fill color space in `context' to `DeviceRGB' and set the components of the current fill color to `(red, green, blue, alpha)'. API-Since: 2.0
      • CGContextSetRGBStrokeColor

        public static void CGContextSetRGBStrokeColor​(@Nullable
                                                      @Nullable CGContextRef c,
                                                      double red,
                                                      double green,
                                                      double blue,
                                                      double alpha)
        Set the current stroke color space in `context' to `DeviceRGB' and set the components of the current stroke color to `(red, green, blue, alpha)'. API-Since: 2.0
      • CGContextSetCMYKFillColor

        public static void CGContextSetCMYKFillColor​(@Nullable
                                                     @Nullable CGContextRef c,
                                                     double cyan,
                                                     double magenta,
                                                     double yellow,
                                                     double black,
                                                     double alpha)
        Set the current fill color space in `context' to `DeviceCMYK' and set the components of the current fill color to `(cyan, magenta, yellow, black, alpha)'. API-Since: 2.0
      • CGContextSetCMYKStrokeColor

        public static void CGContextSetCMYKStrokeColor​(@Nullable
                                                       @Nullable CGContextRef c,
                                                       double cyan,
                                                       double magenta,
                                                       double yellow,
                                                       double black,
                                                       double alpha)
        Set the current stroke color space in `context' to `DeviceCMYK' and set the components of the current stroke color to `(cyan, magenta, yellow, black, alpha)'. API-Since: 2.0
      • CGContextSetRenderingIntent

        public static void CGContextSetRenderingIntent​(@Nullable
                                                       @Nullable CGContextRef c,
                                                       int intent)
        Set the rendering intent in the current graphics state of `context' to `intent'. API-Since: 2.0
      • CGContextDrawImage

        public static void CGContextDrawImage​(@Nullable
                                              @Nullable CGContextRef c,
                                              CGRect rect,
                                              @Nullable
                                              @Nullable CGImageRef image)
        Draw `image' in the rectangular area specified by `rect' in the context `c'. The image is scaled, if necessary, to fit into `rect'. API-Since: 2.0
      • CGContextDrawTiledImage

        public static void CGContextDrawTiledImage​(@Nullable
                                                   @Nullable CGContextRef c,
                                                   CGRect rect,
                                                   @Nullable
                                                   @Nullable CGImageRef image)
        Draw `image' tiled in the context `c'. The image is scaled to the size specified by `rect' in user space, positioned at the origin of `rect' in user space, then replicated, stepping the width of `rect' horizontally and the height of `rect' vertically, to fill the current clip region. Unlike patterns, the image is tiled in user space, so transformations applied to the CTM affect the final result. API-Since: 2.0
      • CGContextGetInterpolationQuality

        public static int CGContextGetInterpolationQuality​(@Nullable
                                                           @Nullable CGContextRef c)
        Return the interpolation quality for image rendering of `context'. The interpolation quality is a gstate parameter which controls the level of interpolation performed when an image is interpolated (for example, when scaling the image). Note that it is merely a hint to the context: not all contexts support all interpolation quality levels. API-Since: 2.0
      • CGContextSetInterpolationQuality

        public static void CGContextSetInterpolationQuality​(@Nullable
                                                            @Nullable CGContextRef c,
                                                            int quality)
        Set the interpolation quality of `context' to `quality'. API-Since: 2.0
      • CGContextSetShadowWithColor

        public static void CGContextSetShadowWithColor​(@Nullable
                                                       @Nullable CGContextRef c,
                                                       CGSize offset,
                                                       double blur,
                                                       @Nullable
                                                       @Nullable CGColorRef color)
        Set the shadow parameters in `context'. `offset' specifies a translation in base-space; `blur' is a non-negative number specifying the amount of blur; `color' specifies the color of the shadow, which may contain a non-opaque alpha value. If `color' is NULL, it's equivalent to specifying a fully transparent color. The shadow is a gstate parameter. After a shadow is specified, all objects drawn subsequently will be shadowed. To turn off shadowing, set the shadow color to a fully transparent color (or pass NULL as the color), or use the standard gsave/grestore mechanism. API-Since: 2.0
      • CGContextSetShadow

        public static void CGContextSetShadow​(@Nullable
                                              @Nullable CGContextRef c,
                                              CGSize offset,
                                              double blur)
        Equivalent to calling CGContextSetShadowWithColor(context, offset, blur, color) where color is black with 1/3 alpha (i.e., RGBA = {0, 0, 0, 1.0/3.0}) in the DeviceRGB color space. API-Since: 2.0
      • CGContextDrawLinearGradient

        public static void CGContextDrawLinearGradient​(@Nullable
                                                       @Nullable CGContextRef c,
                                                       @Nullable
                                                       @Nullable CGGradientRef gradient,
                                                       CGPoint startPoint,
                                                       CGPoint endPoint,
                                                       int options)
        Fill the current clipping region of `context' with a linear gradient from `startPoint' to `endPoint'. The location 0 of `gradient' corresponds to `startPoint'; the location 1 of `gradient' corresponds to `endPoint'; colors are linearly interpolated between these two points based on the values of the gradient's locations. The option flags control whether the gradient is drawn before the start point or after the end point. API-Since: 2.0
      • CGContextDrawRadialGradient

        public static void CGContextDrawRadialGradient​(@Nullable
                                                       @Nullable CGContextRef c,
                                                       @Nullable
                                                       @Nullable CGGradientRef gradient,
                                                       CGPoint startCenter,
                                                       double startRadius,
                                                       CGPoint endCenter,
                                                       double endRadius,
                                                       int options)
        Fill the current clipping region of `context' with a radial gradient between two circles defined by the center point and radius of each circle. The location 0 of `gradient' corresponds to a circle centered at `startCenter' with radius `startRadius'; the location 1 of `gradient' corresponds to a circle centered at `endCenter' with radius `endRadius'; colors are linearly interpolated between these two circles based on the values of the gradient's locations. The option flags control whether the gradient is drawn before the start circle or after the end circle. API-Since: 2.0
      • CGContextDrawShading

        public static void CGContextDrawShading​(@Nullable
                                                @Nullable CGContextRef c,
                                                @Nullable
                                                @Nullable CGShadingRef shading)
        Fill the current clipping region of `context' with `shading'. API-Since: 2.0
      • CGContextSetCharacterSpacing

        public static void CGContextSetCharacterSpacing​(@Nullable
                                                        @Nullable CGContextRef c,
                                                        double spacing)
        Set the current character spacing in `context' to `spacing'. The character spacing is added to the displacement between the origin of one character and the origin of the next. API-Since: 2.0
      • CGContextSetTextPosition

        public static void CGContextSetTextPosition​(@Nullable
                                                    @Nullable CGContextRef c,
                                                    double x,
                                                    double y)
        Set the user-space point at which text will be drawn in the context `c' to `(x, y)'. API-Since: 2.0
      • CGContextGetTextPosition

        public static CGPoint CGContextGetTextPosition​(@Nullable
                                                       @Nullable CGContextRef c)
        Return the user-space point at which text will be drawn in `context'. API-Since: 2.0
      • CGContextSetTextMatrix

        public static void CGContextSetTextMatrix​(@Nullable
                                                  @Nullable CGContextRef c,
                                                  CGAffineTransform t)
        Set the text matrix in the context `c' to `t'. API-Since: 2.0
      • CGContextGetTextMatrix

        public static CGAffineTransform CGContextGetTextMatrix​(@Nullable
                                                               @Nullable CGContextRef c)
        Return the text matrix in the context `c'. Returns CGAffineTransformIdentity if `c' is not a valid context. API-Since: 2.0
      • CGContextSetTextDrawingMode

        public static void CGContextSetTextDrawingMode​(@Nullable
                                                       @Nullable CGContextRef c,
                                                       int mode)
        Set the text drawing mode in the current graphics state of the context `c' to `mode'. API-Since: 2.0
      • CGContextSetFont

        public static void CGContextSetFont​(@Nullable
                                            @Nullable CGContextRef c,
                                            @Nullable
                                            @Nullable CGFontRef font)
        Set the font in the current graphics state of the context `c' to `font'. API-Since: 2.0
      • CGContextSetFontSize

        public static void CGContextSetFontSize​(@Nullable
                                                @Nullable CGContextRef c,
                                                double size)
        Set the font size in the current graphics state of the context `c' to `size'. API-Since: 2.0
      • CGContextShowGlyphsAtPositions

        public static void CGContextShowGlyphsAtPositions​(@Nullable
                                                          @Nullable CGContextRef c,
                                                          @Nullable
                                                          @Nullable org.moe.natj.general.ptr.ConstCharPtr glyphs,
                                                          @Nullable
                                                          @Nullable CGPoint Lpositions,
                                                          long count)
        Draw `glyphs', an array of `count' CGGlyphs, at the points specified by `positions'. Each element of `positions' specifies the position from the associated glyph; the positions are specified in user space. API-Since: 2.0
      • CGContextDrawPDFPage

        public static void CGContextDrawPDFPage​(@Nullable
                                                @Nullable CGContextRef c,
                                                @Nullable
                                                @Nullable CGPDFPageRef page)
        Draw `page' in the current user space of the context `c'. API-Since: 2.0
      • CGContextBeginPage

        public static void CGContextBeginPage​(@Nullable
                                              @Nullable CGContextRef c,
                                              @Nullable
                                              @Nullable CGRect mediaBox)
        Begin a new page. API-Since: 2.0
      • CGContextEndPage

        public static void CGContextEndPage​(@Nullable
                                            @Nullable CGContextRef c)
        End the current page. API-Since: 2.0
      • CGContextRetain

        @Nullable
        public static @Nullable CGContextRef CGContextRetain​(@Nullable
                                                             @Nullable CGContextRef c)
        Equivalent to `CFRetain(c)'. API-Since: 2.0
      • CGContextRelease

        public static void CGContextRelease​(@Nullable
                                            @Nullable CGContextRef c)
        Equivalent to `CFRelease(c)'. API-Since: 2.0
      • CGContextFlush

        public static void CGContextFlush​(@Nullable
                                          @Nullable CGContextRef c)
        Flush all drawing to the destination. API-Since: 2.0
      • CGContextSynchronize

        public static void CGContextSynchronize​(@Nullable
                                                @Nullable CGContextRef c)
        Synchronized drawing. API-Since: 2.0
      • CGContextSetShouldAntialias

        public static void CGContextSetShouldAntialias​(@Nullable
                                                       @Nullable CGContextRef c,
                                                       boolean shouldAntialias)
        Turn on antialiasing if `shouldAntialias' is true; turn it off otherwise. This parameter is part of the graphics state. API-Since: 2.0
      • CGContextSetAllowsAntialiasing

        public static void CGContextSetAllowsAntialiasing​(@Nullable
                                                          @Nullable CGContextRef c,
                                                          boolean allowsAntialiasing)
        Allow antialiasing in `context' if `allowsAntialiasing' is true; don't allow it otherwise. This parameter is not part of the graphics state. A context will perform antialiasing if both `allowsAntialiasing' and the graphics state parameter `shouldAntialias' are true. API-Since: 2.0
      • CGContextSetShouldSmoothFonts

        public static void CGContextSetShouldSmoothFonts​(@Nullable
                                                         @Nullable CGContextRef c,
                                                         boolean shouldSmoothFonts)
        Turn on font smoothing if `shouldSmoothFonts' is true; turn it off otherwise. This parameter is part of the graphics state. Note that this doesn't guarantee that font smoothing will occur: not all destination contexts support font smoothing. API-Since: 2.0
      • CGContextSetAllowsFontSmoothing

        public static void CGContextSetAllowsFontSmoothing​(@Nullable
                                                           @Nullable CGContextRef c,
                                                           boolean allowsFontSmoothing)
        If `allowsFontSmoothing' is true, then allow font smoothing when displaying text in `context'; otherwise, don't allow font smoothing. This parameter is not part of the graphics state. Fonts will be smoothed if they are antialiased when drawn and if both `allowsFontSmoothing' and the graphics state parameter `shouldSmoothFonts' are true. API-Since: 2.0
      • CGContextSetShouldSubpixelPositionFonts

        public static void CGContextSetShouldSubpixelPositionFonts​(@Nullable
                                                                   @Nullable CGContextRef c,
                                                                   boolean shouldSubpixelPositionFonts)
        If `shouldSubpixelPositionFonts' is true, then glyphs may be placed at subpixel positions (if allowed) when displaying text in `context'; otherwise, glyphs will be forced to integer pixel boundaries. This parameter is part of the graphics state. API-Since: 2.0
      • CGContextSetAllowsFontSubpixelPositioning

        public static void CGContextSetAllowsFontSubpixelPositioning​(@Nullable
                                                                     @Nullable CGContextRef c,
                                                                     boolean allowsFontSubpixelPositioning)
        If `allowsFontSubpixelPositioning' is true, then allow font subpixel positioning when displaying text in `context'; otherwise, don't allow subpixel positioning. This parameter is not part of the graphics state. A context will place glyphs at subpixel positions if fonts will be antialiased when drawn and if both `allowsFontSubpixelPositioning' and the graphics state parameter `shouldSubpixelPositionFonts' are true. API-Since: 2.0
      • CGContextSetShouldSubpixelQuantizeFonts

        public static void CGContextSetShouldSubpixelQuantizeFonts​(@Nullable
                                                                   @Nullable CGContextRef c,
                                                                   boolean shouldSubpixelQuantizeFonts)
        If `shouldSubpixelQuantizeFonts' is true, then quantize the subpixel positions of glyphs when displaying text in `context'; otherwise, don't quantize the subpixel positions. This parameter is part of the graphics state. API-Since: 2.0
      • CGContextSetAllowsFontSubpixelQuantization

        public static void CGContextSetAllowsFontSubpixelQuantization​(@Nullable
                                                                      @Nullable CGContextRef c,
                                                                      boolean allowsFontSubpixelQuantization)
        If `allowsFontSubpixelQuantization' is true, then allow font subpixel quantization when displaying text in `context'; otherwise, don't allow subpixel quantization. This parameter is not part of the graphics state. A context quantizes subpixel positions if glyphs will be drawn at subpixel positions and `allowsFontSubpixelQuantization' and the graphics state parameter `shouldSubpixelQuantizeFonts' are both true. API-Since: 2.0
      • CGContextBeginTransparencyLayer

        public static void CGContextBeginTransparencyLayer​(@Nullable
                                                           @Nullable CGContextRef c,
                                                           @Nullable
                                                           @Nullable CFDictionaryRef auxiliaryInfo)
        Begin a transparency layer in `context'. All subsequent drawing operations until a corresponding `CGContextEndTransparencyLayer' are composited into a fully transparent backdrop (which is treated as a separate destination buffer from the context). After the transparency layer is ended, the result is composited into the context using the global alpha and shadow state of the context. This operation respects the clipping region of the context. After a call to this function, all of the parameters in the graphics state remain unchanged with the exception of the following: - The global alpha is set to 1. - The shadow is turned off. - The blend mode is set to `kCGBlendModeNormal'. Ending the transparency layer restores these parameters to the values they had before `CGContextBeginTransparencyLayer' was called. Transparency layers may be nested. API-Since: 2.0
      • CGContextBeginTransparencyLayerWithRect

        public static void CGContextBeginTransparencyLayerWithRect​(@Nullable
                                                                   @Nullable CGContextRef c,
                                                                   CGRect rect,
                                                                   @Nullable
                                                                   @Nullable CFDictionaryRef auxInfo)
        Begin a transparency layer in `context'. This function is identical to `CGContextBeginTransparencyLayer' except that the content of the transparency layer will be bounded by `rect' (specified in user space). API-Since: 2.0
      • CGContextEndTransparencyLayer

        public static void CGContextEndTransparencyLayer​(@Nullable
                                                         @Nullable CGContextRef c)
        End a tranparency layer. API-Since: 2.0
      • CGContextGetUserSpaceToDeviceSpaceTransform

        public static CGAffineTransform CGContextGetUserSpaceToDeviceSpaceTransform​(@Nullable
                                                                                    @Nullable CGContextRef c)
        Return the affine transform mapping the user space (abstract coordinates) of `context' to device space (pixels). API-Since: 2.0
      • CGContextConvertPointToDeviceSpace

        public static CGPoint CGContextConvertPointToDeviceSpace​(@Nullable
                                                                 @Nullable CGContextRef c,
                                                                 CGPoint point)
        Transform `point' from the user space of `context' to device space. API-Since: 2.0
      • CGContextConvertPointToUserSpace

        public static CGPoint CGContextConvertPointToUserSpace​(@Nullable
                                                               @Nullable CGContextRef c,
                                                               CGPoint point)
        Transform `point' from device space to the user space of `context'. API-Since: 2.0
      • CGContextConvertSizeToDeviceSpace

        public static CGSize CGContextConvertSizeToDeviceSpace​(@Nullable
                                                               @Nullable CGContextRef c,
                                                               CGSize size)
        Transform `size' from the user space of `context' to device space. API-Since: 2.0
      • CGContextConvertSizeToUserSpace

        public static CGSize CGContextConvertSizeToUserSpace​(@Nullable
                                                             @Nullable CGContextRef c,
                                                             CGSize size)
        Transform `size' from device space to the user space of `context'. API-Since: 2.0
      • CGContextConvertRectToDeviceSpace

        public static CGRect CGContextConvertRectToDeviceSpace​(@Nullable
                                                               @Nullable CGContextRef c,
                                                               CGRect rect)
        Transform `rect' from the user space of `context' to device space. Since affine transforms do not preserve rectangles in general, this function returns the smallest rectangle which contains the transformed corner points of `rect'. API-Since: 2.0
      • CGContextConvertRectToUserSpace

        public static CGRect CGContextConvertRectToUserSpace​(@Nullable
                                                             @Nullable CGContextRef c,
                                                             CGRect rect)
        Transform `rect' from device space to the user space of `context'. Since affine transforms do not preserve rectangles in general, this function returns the smallest rectangle which contains the transformed corner points of `rect'. API-Since: 2.0
      • CGContextSelectFont

        @Deprecated
        public static void CGContextSelectFont​(@Nullable
                                               @Nullable CGContextRef c,
                                               @Nullable
                                               @Nullable java.lang.String name,
                                               double size,
                                               int textEncoding)
        Deprecated.
        DEPRECATED; use the CoreText API instead. API-Since: 2.0 Deprecated-Since: 7.0 Deprecated-Message: No longer supported
      • CGContextShowText

        @Deprecated
        public static void CGContextShowText​(@Nullable
                                             @Nullable CGContextRef c,
                                             @Nullable
                                             @Nullable java.lang.String string,
                                             long length)
        Deprecated.
        DEPRECATED; use the CoreText API instead. API-Since: 2.0 Deprecated-Since: 7.0 Deprecated-Message: No longer supported
      • CGContextShowTextAtPoint

        @Deprecated
        public static void CGContextShowTextAtPoint​(@Nullable
                                                    @Nullable CGContextRef c,
                                                    double x,
                                                    double y,
                                                    @Nullable
                                                    @Nullable java.lang.String string,
                                                    long length)
        Deprecated.
        DEPRECATED; use the CoreText API instead. API-Since: 2.0 Deprecated-Since: 7.0 Deprecated-Message: No longer supported
      • CGContextShowGlyphs

        @Deprecated
        public static void CGContextShowGlyphs​(@Nullable
                                               @Nullable CGContextRef c,
                                               @Nullable
                                               @Nullable org.moe.natj.general.ptr.ConstCharPtr g,
                                               long count)
        Deprecated.
        DEPRECATED; use the CoreText API instead. API-Since: 2.0 Deprecated-Since: 7.0 Deprecated-Message: No longer supported
      • CGContextShowGlyphsAtPoint

        @Deprecated
        public static void CGContextShowGlyphsAtPoint​(@Nullable
                                                      @Nullable CGContextRef c,
                                                      double x,
                                                      double y,
                                                      @Nullable
                                                      @Nullable org.moe.natj.general.ptr.ConstCharPtr glyphs,
                                                      long count)
        Deprecated.
        DEPRECATED; use the CoreText API instead. API-Since: 2.0 Deprecated-Since: 7.0 Deprecated-Message: No longer supported
      • CGContextShowGlyphsWithAdvances

        @Deprecated
        public static void CGContextShowGlyphsWithAdvances​(@Nullable
                                                           @Nullable CGContextRef c,
                                                           @Nullable
                                                           @Nullable org.moe.natj.general.ptr.ConstCharPtr glyphs,
                                                           @Nullable
                                                           @Nullable CGSize advances,
                                                           long count)
        Deprecated.
        DEPRECATED; use the CoreText API instead. API-Since: 2.0 Deprecated-Since: 7.0 Deprecated-Message: No longer supported
      • CGBitmapContextCreateWithData

        @Nullable
        public static @Nullable CGContextRef CGBitmapContextCreateWithData​(@Nullable
                                                                           @Nullable org.moe.natj.general.ptr.VoidPtr data,
                                                                           long width,
                                                                           long height,
                                                                           long bitsPerComponent,
                                                                           long bytesPerRow,
                                                                           @Nullable
                                                                           @Nullable CGColorSpaceRef space,
                                                                           int bitmapInfo,
                                                                           @Nullable
                                                                           @Nullable CoreGraphics.Function_CGBitmapContextCreateWithData releaseCallback,
                                                                           @Nullable
                                                                           @Nullable org.moe.natj.general.ptr.VoidPtr releaseInfo)
        Create a bitmap context. The context draws into a bitmap which is `width' pixels wide and `height' pixels high. The number of components for each pixel is specified by `space', which may also specify a destination color profile. Note that the only legal case when `space' can be NULL is when alpha is specified as kCGImageAlphaOnly. The number of bits for each component of a pixel is specified by `bitsPerComponent'. The number of bytes per pixel is equal to `(bitsPerComponent * number of components + 7)/8'. Each row of the bitmap consists of `bytesPerRow' bytes, which must be at least `width * bytes per pixel' bytes; in addition, `bytesPerRow' must be an integer multiple of the number of bytes per pixel. `data', if non-NULL, points to a block of memory at least `bytesPerRow * height' bytes. If `data' is NULL, the context will allocate the data itself; this data will be freed when the context is deallocated. `bitmapInfo' specifies whether the bitmap should contain an alpha channel and how it's to be generated, along with whether the components are floating-point or integer. If `releaseCallback' is non-NULL, it is called when the context is freed with `releaseInfo' and `data' as arguments. API-Since: 4.0
      • CGBitmapContextCreate

        @Nullable
        public static @Nullable CGContextRef CGBitmapContextCreate​(@Nullable
                                                                   @Nullable org.moe.natj.general.ptr.VoidPtr data,
                                                                   long width,
                                                                   long height,
                                                                   long bitsPerComponent,
                                                                   long bytesPerRow,
                                                                   @Nullable
                                                                   @Nullable CGColorSpaceRef space,
                                                                   int bitmapInfo)
        Create a bitmap context. The context draws into a bitmap which is `width' pixels wide and `height' pixels high. The number of components for each pixel is specified by `space', which may also specify a destination color profile. Note that the only legal case when `space' can be NULL is when alpha is specified as kCGImageAlphaOnly.The number of bits for each component of a pixel is specified by `bitsPerComponent'. The number of bytes per pixel is equal to `(bitsPerComponent * number of components + 7)/8'. Each row of the bitmap consists of `bytesPerRow' bytes, which must be at least `width * bytes per pixel' bytes; in addition, `bytesPerRow' must be an integer multiple of the number of bytes per pixel. `data', if non-NULL, points to a block of memory at least `bytesPerRow * height' bytes. If `data' is NULL, the data for context is allocated automatically and freed when the context is deallocated. `bitmapInfo' specifies whether the bitmap should contain an alpha channel and how it's to be generated, along with whether the components are floating-point or integer. API-Since: 2.0
      • CGBitmapContextGetData

        @Nullable
        public static @Nullable org.moe.natj.general.ptr.VoidPtr CGBitmapContextGetData​(@Nullable
                                                                                        @Nullable CGContextRef context)
        Return the data associated with the bitmap context `context', or NULL if `context' is not a bitmap context. API-Since: 2.0
      • CGBitmapContextGetWidth

        public static long CGBitmapContextGetWidth​(@Nullable
                                                   @Nullable CGContextRef context)
        Return the width of the bitmap context `context', or 0 if `context' is not a bitmap context. API-Since: 2.0
      • CGBitmapContextGetHeight

        public static long CGBitmapContextGetHeight​(@Nullable
                                                    @Nullable CGContextRef context)
        Return the height of the bitmap context `context', or 0 if `context' is not a bitmap context. API-Since: 2.0
      • CGBitmapContextGetBitsPerComponent

        public static long CGBitmapContextGetBitsPerComponent​(@Nullable
                                                              @Nullable CGContextRef context)
        Return the bits per component of the bitmap context `context', or 0 if `context' is not a bitmap context. API-Since: 2.0
      • CGBitmapContextGetBitsPerPixel

        public static long CGBitmapContextGetBitsPerPixel​(@Nullable
                                                          @Nullable CGContextRef context)
        Return the bits per pixel of the bitmap context `context', or 0 if `context' is not a bitmap context. API-Since: 2.0
      • CGBitmapContextGetBytesPerRow

        public static long CGBitmapContextGetBytesPerRow​(@Nullable
                                                         @Nullable CGContextRef context)
        Return the bytes per row of the bitmap context `context', or 0 if `context' is not a bitmap context. API-Since: 2.0
      • CGBitmapContextGetColorSpace

        @Nullable
        public static @Nullable CGColorSpaceRef CGBitmapContextGetColorSpace​(@Nullable
                                                                             @Nullable CGContextRef context)
        Return the color space of the bitmap context `context', or NULL if `context' is not a bitmap context. API-Since: 2.0
      • CGBitmapContextGetAlphaInfo

        public static int CGBitmapContextGetAlphaInfo​(@Nullable
                                                      @Nullable CGContextRef context)
        Return the alpha info of the bitmap context `context', or "kCGImageAlphaNone" if `context' is not a bitmap context. API-Since: 2.0
      • CGBitmapContextGetBitmapInfo

        public static int CGBitmapContextGetBitmapInfo​(@Nullable
                                                       @Nullable CGContextRef context)
        Return the bitmap info of the bitmap context `context', or 0 if `context' is not a bitmap context. API-Since: 2.0
      • CGBitmapContextCreateImage

        @Nullable
        public static @Nullable CGImageRef CGBitmapContextCreateImage​(@Nullable
                                                                      @Nullable CGContextRef context)
        Return an image containing a snapshot of the bitmap context `context'. If context is not a bitmap context, or if the image cannot be created for any reason, this function returns NULL. This is a "copy" operation --- subsequent changes to context will not affect the contents of the returned image. Note that in some cases the copy will actually follow "copy-on-write" semantics, so that the actual physical copy of the bits will only occur if the underlying data in the bitmap context is modified. As a consequence, you may wish to use the resulting image and release it before performing more drawing into the bitmap context; in this way, the actual physical copy of the data may be avoided. API-Since: 2.0
      • CGColorConversionInfoGetTypeID

        public static long CGColorConversionInfoGetTypeID()
      • CGColorConversionInfoCreate

        @Nullable
        public static @Nullable CGColorConversionInfoRef CGColorConversionInfoCreate​(@Nullable
                                                                                     @Nullable CGColorSpaceRef src,
                                                                                     @Nullable
                                                                                     @Nullable CGColorSpaceRef dst)
        Create CGColorConversionInfoRef for converting color from `src' color space to `dst' color space using kCGRenderingIntentDefault rendering intent. Requirements: CG color spaces must be calibrated (no Device{Gray,RGB,CMYK}, Indexed or DeviceN are allowed). API-Since: 10.0
      • CGColorConversionInfoCreateFromList

        @Nullable
        public static @Nullable CGColorConversionInfoRef CGColorConversionInfoCreateFromList​(@Nullable
                                                                                             @Nullable CFDictionaryRef options,
                                                                                             @Nullable
                                                                                             @Nullable CGColorSpaceRef arg2,
                                                                                             int arg3,
                                                                                             int arg4,
                                                                                             java.lang.Object... varargs)
        Create CGColorConversionInfoRef from a list of CG color spaces, transform types and rendering intents. ColorSpaces are iterated from first to last. The list of triples: {CGColorSpaceRef, CGColorConversionInfoTransformType, CGColorRenderingIntent} must be terminated with NULL Requirements: CG color spaces must be calibrated (no Device{Gray,RGB,CMYK}, Indexed or DeviceN are allowed). API-Since: 10.0
      • CGDataConsumerGetTypeID

        public static long CGDataConsumerGetTypeID()
        Return the CFTypeID for CGDataConsumerRefs. API-Since: 2.0
      • CGDataConsumerCreate

        @Nullable
        public static @Nullable CGDataConsumerRef CGDataConsumerCreate​(@Nullable
                                                                       @Nullable org.moe.natj.general.ptr.VoidPtr info,
                                                                       @Nullable
                                                                       @Nullable CGDataConsumerCallbacks cbks)
        Create a data consumer using `callbacks' to handle the data. `info' is passed to each of the callback functions. API-Since: 2.0
      • CGDataConsumerCreateWithURL

        @Nullable
        public static @Nullable CGDataConsumerRef CGDataConsumerCreateWithURL​(@Nullable
                                                                              @Nullable CFURLRef url)
        Create a data consumer which writes data to `url'. API-Since: 2.0
      • CGDataConsumerCreateWithCFData

        @Nullable
        public static @Nullable CGDataConsumerRef CGDataConsumerCreateWithCFData​(@Nullable
                                                                                 @Nullable CFMutableDataRef data)
        Create a data consumer which writes to `data'. API-Since: 2.0
      • CGDataConsumerRetain

        @Nullable
        public static @Nullable CGDataConsumerRef CGDataConsumerRetain​(@Nullable
                                                                       @Nullable CGDataConsumerRef consumer)
        Equivalent to `CFRetain(consumer)'. API-Since: 2.0
      • CGDataConsumerRelease

        public static void CGDataConsumerRelease​(@Nullable
                                                 @Nullable CGDataConsumerRef consumer)
        Equivalent to `CFRelease(consumer)'. API-Since: 2.0
      • CGLayerCreateWithContext

        @Nullable
        public static @Nullable CGLayerRef CGLayerCreateWithContext​(@Nullable
                                                                    @Nullable CGContextRef context,
                                                                    CGSize size,
                                                                    @Nullable
                                                                    @Nullable CFDictionaryRef auxiliaryInfo)
        Create a layer of size `size' relative to the context `context'. The value of `size' is specified in default user space (base space) units. The parameter `auxiliaryInfo' should be NULL; it is reserved for future expansion. API-Since: 2.0
      • CGLayerRetain

        @Nullable
        public static @Nullable CGLayerRef CGLayerRetain​(@Nullable
                                                         @Nullable CGLayerRef layer)
        Equivalent to `CFRetain(layer)', except it doesn't crash (as CFRetain does) if `layer' is NULL. API-Since: 2.0
      • CGLayerRelease

        public static void CGLayerRelease​(@Nullable
                                          @Nullable CGLayerRef layer)
        Equivalent to `CFRelease(layer)', except it doesn't crash (as CFRelease does) if `layer' is NULL. API-Since: 2.0
      • CGLayerGetSize

        public static CGSize CGLayerGetSize​(@Nullable
                                            @Nullable CGLayerRef layer)
        Return the size of the layer `layer'. CGSizeZero if invalid `layer'. API-Since: 2.0
      • CGLayerGetContext

        @Nullable
        public static @Nullable CGContextRef CGLayerGetContext​(@Nullable
                                                               @Nullable CGLayerRef layer)
        Return the context of `layer'. API-Since: 2.0
      • CGContextDrawLayerInRect

        public static void CGContextDrawLayerInRect​(@Nullable
                                                    @Nullable CGContextRef context,
                                                    CGRect rect,
                                                    @Nullable
                                                    @Nullable CGLayerRef layer)
        Draw the contents of `layer' into `rect' of `context'. The contents are scaled, if necessary, to fit into `rect'; the rectangle `rect' is in user space. API-Since: 2.0
      • CGContextDrawLayerAtPoint

        public static void CGContextDrawLayerAtPoint​(@Nullable
                                                     @Nullable CGContextRef context,
                                                     CGPoint point,
                                                     @Nullable
                                                     @Nullable CGLayerRef layer)
        Draw the contents of `layer' at `point' in `context'. This is equivalent to calling "CGContextDrawLayerInRect" with a rectangle having origin at `point' and size equal to the size of `layer'. API-Since: 2.0
      • CGLayerGetTypeID

        public static long CGLayerGetTypeID()
        Return the CFTypeID for CGLayerRefs. API-Since: 2.0
      • CGPDFContentStreamCreateWithPage

        @NotNull
        public static @NotNull CGPDFContentStreamRef CGPDFContentStreamCreateWithPage​(@NotNull
                                                                                      @NotNull CGPDFPageRef page)
        Create a content stream from `page'. API-Since: 2.0
      • CGPDFContentStreamRelease

        public static void CGPDFContentStreamRelease​(@NotNull
                                                     @NotNull CGPDFContentStreamRef cs)
        Decrement the retain count of `cs'. API-Since: 2.0
      • CGPDFContentStreamGetStreams

        @Nullable
        public static @Nullable CFArrayRef CGPDFContentStreamGetStreams​(@NotNull
                                                                        @NotNull CGPDFContentStreamRef cs)
        Return the array of CGPDFStreamRefs comprising the entire content stream of `cs'. API-Since: 2.0
      • CGPDFContentStreamGetResource

        @Nullable
        public static @Nullable CGPDFObjectRef CGPDFContentStreamGetResource​(@NotNull
                                                                             @NotNull CGPDFContentStreamRef cs,
                                                                             @NotNull
                                                                             @NotNull java.lang.String category,
                                                                             @NotNull
                                                                             @NotNull java.lang.String name)
        Return the resource named `name' in category `category' of the resource dictionaries of `cs'. API-Since: 2.0
      • CGPDFContextCreate

        @Nullable
        public static @Nullable CGContextRef CGPDFContextCreate​(@Nullable
                                                                @Nullable CGDataConsumerRef consumer,
                                                                @Nullable
                                                                @Nullable CGRect mediaBox,
                                                                @Nullable
                                                                @Nullable CFDictionaryRef auxiliaryInfo)
        Create a PDF context, using `consumer' for output. `mediaBox' is the default page media bounding box; if NULL, then a default page size is used. `auxiliaryInfo' specifies additional information used by the PDF context when generating the PDF file. The keys and values in `auxiliaryInfo' are described below. If `mediaBox' is non-NULL, then its value overrides the value of `kCGPDFContextMediaBox' if specified in the `auxiliaryInfo' dictionary. API-Since: 2.0
      • CGPDFContextCreateWithURL

        @Nullable
        public static @Nullable CGContextRef CGPDFContextCreateWithURL​(@Nullable
                                                                       @Nullable CFURLRef url,
                                                                       @Nullable
                                                                       @Nullable CGRect mediaBox,
                                                                       @Nullable
                                                                       @Nullable CFDictionaryRef auxiliaryInfo)
        Create a PDF context for writing to `url'. This function behaves in the same manner as the above function, except that the output data will be written to `url'. API-Since: 2.0
      • CGPDFContextClose

        public static void CGPDFContextClose​(@Nullable
                                             @Nullable CGContextRef context)
        Close a PDF context. After closing the context, all pending data is written to the context's destination, and the PDF file is completed. No additional data will be written to the context's destionation after closing. API-Since: 2.0
      • CGPDFContextBeginPage

        public static void CGPDFContextBeginPage​(@Nullable
                                                 @Nullable CGContextRef context,
                                                 @Nullable
                                                 @Nullable CFDictionaryRef pageInfo)
        Begin a new page in the PDF context `context'. API-Since: 2.0
      • CGPDFContextEndPage

        public static void CGPDFContextEndPage​(@Nullable
                                               @Nullable CGContextRef context)
        End the current page in the PDF context `context'. API-Since: 2.0
      • CGPDFContextAddDocumentMetadata

        public static void CGPDFContextAddDocumentMetadata​(@Nullable
                                                           @Nullable CGContextRef context,
                                                           @Nullable
                                                           @Nullable CFDataRef metadata)
        Add the metadata stream specified by `metadata' to the document catalog of `context', as described in Table 3.25, "Entries in the catalog dictionary", of the PDF 1.7 specification. The contents of metadata must be XML formatted according to the Extensible Metadata Platform, as described in section 10.2.2, "Metadata Streams", of the PDF 1.7 specification. API-Since: 4.0
      • CGPDFContextSetURLForRect

        public static void CGPDFContextSetURLForRect​(@Nullable
                                                     @Nullable CGContextRef context,
                                                     @NotNull
                                                     @NotNull CFURLRef url,
                                                     CGRect rect)
        Set the URL associated with `rect' to `url' in the PDF context `context'. API-Since: 2.0
      • CGPDFContextAddDestinationAtPoint

        public static void CGPDFContextAddDestinationAtPoint​(@Nullable
                                                             @Nullable CGContextRef context,
                                                             @NotNull
                                                             @NotNull CFStringRef name,
                                                             CGPoint point)
        Create a PDF destination named `name' at `point' in the current page of the PDF context `context'. API-Since: 2.0
      • CGPDFContextSetDestinationForRect

        public static void CGPDFContextSetDestinationForRect​(@Nullable
                                                             @Nullable CGContextRef context,
                                                             @NotNull
                                                             @NotNull CFStringRef name,
                                                             CGRect rect)
        Specify a destination named `name' to jump to when clicking in `rect' of the current page of the PDF context `context'. API-Since: 2.0
      • CGPDFScannerRetain

        @Nullable
        public static @Nullable CGPDFScannerRef CGPDFScannerRetain​(@Nullable
                                                                   @Nullable CGPDFScannerRef scanner)
        Retain `scanner'. API-Since: 2.0
      • CGPDFScannerRelease

        public static void CGPDFScannerRelease​(@Nullable
                                               @Nullable CGPDFScannerRef scanner)
        Release `scanner'. API-Since: 2.0
      • CGPDFScannerScan

        public static boolean CGPDFScannerScan​(@Nullable
                                               @Nullable CGPDFScannerRef scanner)
        Scan the content stream of `scanner'. Returns true if the entire stream was scanned successfully; false if scanning failed for some reason (for example, if the stream's data is corrupted). API-Since: 2.0
      • CGPDFScannerGetContentStream

        @NotNull
        public static @NotNull CGPDFContentStreamRef CGPDFScannerGetContentStream​(@NotNull
                                                                                  @NotNull CGPDFScannerRef scanner)
        Return the content stream associated with `scanner'. API-Since: 2.0
      • CGPDFScannerPopObject

        public static boolean CGPDFScannerPopObject​(@NotNull
                                                    @NotNull CGPDFScannerRef scanner,
                                                    @Nullable
                                                    @Nullable org.moe.natj.general.ptr.Ptr<CGPDFObjectRef> value)
        Pop an object from the stack of `scanner' and return it in `value'. API-Since: 2.0
      • CGPDFScannerPopBoolean

        public static boolean CGPDFScannerPopBoolean​(@NotNull
                                                     @NotNull CGPDFScannerRef scanner,
                                                     @Nullable
                                                     @Nullable org.moe.natj.general.ptr.BytePtr value)
        Pop an object from the stack of `scanner' and, if it's a boolean, return it in `value'. Return false if the top of the stack isn't a boolean. API-Since: 2.0
      • CGPDFScannerPopInteger

        public static boolean CGPDFScannerPopInteger​(@NotNull
                                                     @NotNull CGPDFScannerRef scanner,
                                                     @Nullable
                                                     @Nullable org.moe.natj.general.ptr.NIntPtr value)
        Pop an object from the stack of `scanner' and, if it's an integer, return it in `value'. Return false if the top of the stack isn't an integer. API-Since: 2.0
      • CGPDFScannerPopNumber

        public static boolean CGPDFScannerPopNumber​(@NotNull
                                                    @NotNull CGPDFScannerRef scanner,
                                                    @Nullable
                                                    @Nullable org.moe.natj.general.ptr.NFloatPtr value)
        Pop an object from the stack of `scanner' and, if it's a number, return it in `value'. Return false if the top of the stack isn't a number. API-Since: 2.0
      • CGPDFScannerPopName

        public static boolean CGPDFScannerPopName​(@NotNull
                                                  @NotNull CGPDFScannerRef scanner,
                                                  @Nullable
                                                  @Nullable java.lang.String[] value)
        Pop an object from the stack of `scanner' and, if it's a name, return it in `value'. Return false if the top of the stack isn't a name. API-Since: 2.0
      • CGPDFScannerPopString

        public static boolean CGPDFScannerPopString​(@NotNull
                                                    @NotNull CGPDFScannerRef scanner,
                                                    @Nullable
                                                    @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStringRef> value)
        Pop an object from the stack of `scanner' and, if it's a string, return it in `value'. Return false if the top of the stack isn't a string. API-Since: 2.0
      • CGPDFScannerPopArray

        public static boolean CGPDFScannerPopArray​(@NotNull
                                                   @NotNull CGPDFScannerRef scanner,
                                                   @Nullable
                                                   @Nullable org.moe.natj.general.ptr.Ptr<CGPDFArrayRef> value)
        Pop an object from the stack of `scanner' and, if it's an array, return it in `value'. Return false if the top of the stack isn't an array. API-Since: 2.0
      • CGPDFScannerPopDictionary

        public static boolean CGPDFScannerPopDictionary​(@NotNull
                                                        @NotNull CGPDFScannerRef scanner,
                                                        @Nullable
                                                        @Nullable org.moe.natj.general.ptr.Ptr<CGPDFDictionaryRef> value)
        Pop an object from the stack of `scanner' and, if it's a dictionary, return it in `value'. Return false if the top of the stack isn't a dictionary. API-Since: 2.0
      • CGPDFScannerPopStream

        public static boolean CGPDFScannerPopStream​(@NotNull
                                                    @NotNull CGPDFScannerRef scanner,
                                                    @Nullable
                                                    @Nullable org.moe.natj.general.ptr.Ptr<CGPDFStreamRef> value)
        Pop an object from the stack of `scanner' and, if it's a stream, return it in `value'. Return false if the top of the stack isn't a stream. API-Since: 2.0
      • CGPDFOperatorTableCreate

        @Nullable
        public static @Nullable CGPDFOperatorTableRef CGPDFOperatorTableCreate()
        Return an empty operator table. API-Since: 2.0
      • CGPDFOperatorTableRetain

        @Nullable
        public static @Nullable CGPDFOperatorTableRef CGPDFOperatorTableRetain​(@Nullable
                                                                               @Nullable CGPDFOperatorTableRef table)
        Increment the retain count of `table'. API-Since: 2.0
      • CGPDFOperatorTableRelease

        public static void CGPDFOperatorTableRelease​(@Nullable
                                                     @Nullable CGPDFOperatorTableRef table)
        Decrement the retain count of `table'. API-Since: 2.0
      • CGPointZero

        public static CGPoint CGPointZero()
        The "zero" point -- equivalent to CGPointMake(0, 0). API-Since: 2.0
      • CGSizeZero

        public static CGSize CGSizeZero()
        The "zero" size -- equivalent to CGSizeMake(0, 0). API-Since: 2.0
      • CGRectZero

        public static CGRect CGRectZero()
        The "zero" rectangle -- equivalent to CGRectMake(0, 0, 0, 0). API-Since: 2.0
      • CGRectNull

        public static CGRect CGRectNull()
        The "empty" rect. This is the rectangle returned when, for example, we intersect two disjoint rectangles. Note that the null rect is not the same as the zero rect. API-Since: 2.0
      • CGRectInfinite

        public static CGRect CGRectInfinite()
        The infinite rectangle. API-Since: 2.0
      • CGAffineTransformIdentity

        public static CGAffineTransform CGAffineTransformIdentity()
        The identity transform: [ 1 0 0 1 0 0 ]. API-Since: 2.0
      • kCGColorSpaceGenericGray

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceGenericGray()
        The name of the "Generic" Gray color space. It is a legacy color space so use it only if you definitely know that you need it. If you need just a reasonable monochrome color space, please use Generic Gray Gamma 2.2, i.e. use kCGColorSpaceGenericGrayGamma2_2 name instead of kCGColorSpaceGenericGray. API-Since: 9.0
      • kCGColorSpaceGenericRGB

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceGenericRGB()
        The name of the "Generic" RGB color space. It is a legacy color space so use it only if you definitely know that you need it. If you need just a reasonable RGB color space, please use sRGB, i.e. use kCGColorSpaceSRGB name instead of kCGColorSpaceGenericRGB. API-Since: 9.0
      • kCGColorSpaceGenericCMYK

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceGenericCMYK()
        The name of the "Generic" CMYK color space. API-Since: 9.0
      • kCGColorSpaceDisplayP3

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceDisplayP3()
        API-Since: 9.3
      • kCGColorSpaceGenericRGBLinear

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceGenericRGBLinear()
        The name of the "Generic" linear RGB color space. This is the same as `kCGColorSpaceGenericRGB' but with a 1.0 gamma. API-Since: 9.0
      • kCGColorSpaceAdobeRGB1998

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceAdobeRGB1998()
        The name of the Adobe RGB (1998) color space. For more information, see "Adobe RGB (1998) Color Image Encoding", Version 2005-05, Adobe Systems Inc. (http://www.adobe.com). API-Since: 9.0
      • kCGColorSpaceSRGB

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceSRGB()
        The name of the sRGB color space. The capitalization in the name, while strictly inaccurate, avoids interpretational ambiguity. For more information, see IEC 61966-2-1 (1999-10): "Multimedia systems and equipment - Colour measurement and management - Part 2-1: Colour management - Default RGB colour space - sRGB". API-Since: 9.0
      • kCGColorSpaceGenericGrayGamma2_2

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceGenericGrayGamma2_2()
        The "Generic" gray color space with γ = 2.2. API-Since: 9.0
      • kCGColorSpaceGenericXYZ

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceGenericXYZ()
        API-Since: 9.0
      • kCGColorSpaceACESCGLinear

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceACESCGLinear()
        API-Since: 9.0
      • kCGColorSpaceITUR_709

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceITUR_709()
        API-Since: 9.0
      • kCGColorSpaceITUR_2020

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceITUR_2020()
        API-Since: 9.0
      • kCGColorSpaceROMMRGB

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceROMMRGB()
        API-Since: 9.0
      • kCGColorSpaceDCIP3

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceDCIP3()
        API-Since: 9.0
      • kCGColorSpaceExtendedSRGB

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceExtendedSRGB()
        The name of the extended sRGB color space. The extended sRGB color space allows to specify colors beyond the range of [0.0, 1.0], while still preserving the colorimetry and encoding of sRGB (see above for more details). The negative values will be encoded as the signed reflection of original encoding functions, i.e. y(x) = sign(x)*f(abs(x)) where f(x) represents the encoding function. The capitalization in the name is for avoiding interpretational ambiguity. API-Since: 10.0
      • kCGColorSpaceLinearSRGB

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceLinearSRGB()
        The name of the sRGB color space variant with linear gamma API-Since: 10.0
      • kCGColorSpaceExtendedLinearSRGB

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceExtendedLinearSRGB()
        The name of the extended sRGB color space variant with linear gamma API-Since: 10.0
      • kCGColorSpaceExtendedGray

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceExtendedGray()
        The name of the extended Gray color space. This color space has the same colorimetry as Generic Gray 2.2. The negative values will be encoded as the signed reflection of original encoding functions, i.e. y(x) = sign(x)*f(abs(x)) where f(x) represents the encoding function. API-Since: 10.0
      • kCGColorSpaceLinearGray

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceLinearGray()
        The name of the Generic Gray 2.2 color space variant with linear gamma API-Since: 10.0
      • kCGColorSpaceExtendedLinearGray

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceExtendedLinearGray()
        The name of the extended Generic Gray 2.2 color space variant with linear gamma API-Since: 10.0
      • kCGFontVariationAxisName

        @NotNull
        public static @NotNull CFStringRef kCGFontVariationAxisName()
        The key used to obtain the variation axis name from a variation axis dictionary. The value obtained with this key is a CFStringRef specifying the name of the variation axis. API-Since: 2.0
      • kCGFontVariationAxisMinValue

        @NotNull
        public static @NotNull CFStringRef kCGFontVariationAxisMinValue()
        The key used to obtain the minimum variation axis value from a variation axis dictionary. The value obtained with this key is a CFNumberRef specifying the minimum value of the variation axis. API-Since: 2.0
      • kCGFontVariationAxisMaxValue

        @NotNull
        public static @NotNull CFStringRef kCGFontVariationAxisMaxValue()
        The key used to obtain the maximum variation axis value from a variation axis dictionary. The value obtained with this key is a CFNumberRef specifying the maximum value of the variation axis. API-Since: 2.0
      • kCGFontVariationAxisDefaultValue

        @NotNull
        public static @NotNull CFStringRef kCGFontVariationAxisDefaultValue()
        The key used to obtain the default variation axis value from a variation axis dictionary. The value obtained with this key is a CFNumberRef specifying the default value of the variation axis. API-Since: 2.0
      • kCGColorConversionBlackPointCompensation

        @NotNull
        public static @NotNull CFStringRef kCGColorConversionBlackPointCompensation()
        CFBooleanRef which can be used as option to create CGColorConversionInfoRef, when Black Point Compensation is desired API-Since: 10.0
      • kCGPDFContextMediaBox

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextMediaBox()
        The media box for the document or for a given page. Optional; if present, the value of this key must be a CFData containing a CGRect (stored by value, not by reference). API-Since: 2.0
      • kCGPDFContextCropBox

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextCropBox()
        The crop box for the document or for a given page. Optional; if present, the value of this key must be a CFData containing a CGRect (stored by value, not by reference). API-Since: 2.0
      • kCGPDFContextBleedBox

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextBleedBox()
        The bleed box for the document or for a given page. Optional; if present, the value of this key must be a CFData containing a CGRect (stored by value, not by reference). API-Since: 2.0
      • kCGPDFContextTrimBox

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextTrimBox()
        The trim box for the document or for a given page. Optional; if present, the value of this key must be a CFData containing a CGRect (stored by value, not by reference). API-Since: 2.0
      • kCGPDFContextArtBox

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextArtBox()
        The art box for the document or for a given page. Optional; if present, the value of this key must be a CFData containing a CGRect (stored by value, not by reference). API-Since: 2.0
      • kCGPDFContextTitle

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextTitle()
        The document's title. Optional; if present, the value of this key must be a CFString. API-Since: 2.0
      • kCGPDFContextAuthor

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextAuthor()
        The name of the person who created this document. Optional; if present, the value of this key must be a CFString. API-Since: 2.0
      • kCGPDFContextSubject

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextSubject()
        The subject of a document. Optional; if present, the value of this key must be a CFString. API-Since: 2.0
      • kCGPDFContextKeywords

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextKeywords()
        The keywords for this document. This key is optional. If the value of this key is a CFString, the /Keywords entry will be the specified string. If the value of this key is a CFArray, then it must be an array of CFStrings. The /Keywords entry will in this case be the concatenation of the specified strings separated by commas (","). In addition, an entry with the key "/AAPL:Keywords" will be stored in the document information dictionary; its value is an array consisting of each of the specified strings. The value of this key must be in one of the above forms; otherwise, this key is ignored. API-Since: 2.0
      • kCGPDFContextCreator

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextCreator()
        The name of the application that created the original data used to create this document. Optional; if present, the value of this key must be a CFString. API-Since: 2.0
      • kCGPDFContextOwnerPassword

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextOwnerPassword()
        The "owner password" of the PDF document. If this key is specified, the document will be encrypted using the value as the owner password; otherwise, the document will not be encrypted. The value of this key must be a CFStringRef which can be represented in ASCII encoding; only the first 32 bytes will be used for the password. There is no default value for this key. If the value of this key cannot be represented in ASCII, the document will not be created and the creation function will return NULL. API-Since: 2.0
      • kCGPDFContextUserPassword

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextUserPassword()
        The "user password" of the PDF document. If the document is encrypted, then the value of this key will be the user password for the document; if unspecified, the user password will be the empty string. The value of this key must be a CFStringRef which can be represented in ASCII encoding; only the first 32 bytes will be used for the password. If the value of this key cannot be represented in ASCII, the document will not be created and the creation function will return NULL. API-Since: 2.0
      • kCGPDFContextEncryptionKeyLength

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextEncryptionKeyLength()
        Specifies the encryption key length in bits; see Table 3.18 "Entries common to all encryption dictionaries", PDF Reference: Adobe PDF version 1.5 (4th ed.) for more info. Optional; if present, the value of this key must be a CFNumber with value which is a multiple of 8 between 40 and 128, inclusive. If this key is absent or invalid, the encryption key length defaults to 40 bits. API-Since: 2.0
      • kCGPDFContextAllowsPrinting

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextAllowsPrinting()
        Used to specify whether the document allows printing when unlocked with the user password. The value of this key must be a CFBooleanRef. The default value of this key is "kCFBooleanTrue". API-Since: 2.0
      • kCGPDFContextAllowsCopying

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextAllowsCopying()
        Used to specify whether the document allows copying when unlocked with the user password. The value of this key must be a CFBooleanRef. The default value of this key is "kCFBooleanTrue". API-Since: 2.0
      • CGDataProviderGetInfo

        @Nullable
        public static @Nullable org.moe.natj.general.ptr.VoidPtr CGDataProviderGetInfo​(@Nullable
                                                                                       @Nullable CGDataProviderRef provider)
        API-Since: 11.0
      • CGColorSpaceCreateWithICCData

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceCreateWithICCData​(@Nullable
                                                                              @Nullable org.moe.natj.general.ptr.ConstVoidPtr data)
        Create an ICC-based color space using the ICC profile raw data specified by `data' which can be either CFDataRef or CGDataProviderRef API-Since: 10.0
      • CGColorSpaceGetName

        @Nullable
        public static @Nullable CFStringRef CGColorSpaceGetName​(@Nullable
                                                                @Nullable CGColorSpaceRef space)
        Return the system name of the color space. This applies to all color spaces created using `CGColorSpaceCreateWithName' as well as to ICC-based colorspaces created using `CGColorSpaceCreateWithICCData' or `CGColorSpaceCreateICCBased' if they are equivalent to respective named system color spaces. Device color spaces also return unique names. This function will return NULL for other color spaces. Example: CGColorSpaceRef space = CGColorSpaceCreateWithICCData(icc_data); CFStringRef name = CGColorSpaceGetName(space); if (name != NULL && CFEqual(name, kCGColorSpaceDisplayP3)) { // your color space is Display P3 ... } API-Since: 11.0
      • CGPDFDocumentGetOutline

        @Nullable
        public static @Nullable CFDictionaryRef CGPDFDocumentGetOutline​(@NotNull
                                                                        @NotNull CGPDFDocumentRef document)
        Return the document outline in the form of a CFDictionary tree containing the kCGPDFOutline keys. API-Since: 11.0
      • CGPDFDocumentGetAccessPermissions

        public static int CGPDFDocumentGetAccessPermissions​(@NotNull
                                                            @NotNull CGPDFDocumentRef document)
        Return the document access permissions. API-Since: 11.0
      • CGContextResetClip

        public static void CGContextResetClip​(@NotNull
                                              @NotNull CGContextRef c)
        Reset the current clip of `c' to the default value.
      • CGColorConversionInfoCreateFromListWithArguments

        @Nullable
        public static @Nullable CGColorConversionInfoRef CGColorConversionInfoCreateFromListWithArguments​(@Nullable
                                                                                                          @Nullable CFDictionaryRef options,
                                                                                                          @Nullable
                                                                                                          @Nullable CGColorSpaceRef arg2,
                                                                                                          int arg3,
                                                                                                          int arg4,
                                                                                                          org.moe.natj.general.ptr.BytePtr arg5)
        API-Since: 11.0
      • CGPDFContextSetOutline

        public static void CGPDFContextSetOutline​(@NotNull
                                                  @NotNull CGContextRef context,
                                                  @Nullable
                                                  @Nullable CFDictionaryRef outline)
        Set the outline in the PDF created by a CGPDFContext (no effect in other types of CGContexts). API-Since: 11.0
      • kCGColorSpaceGenericLab

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceGenericLab()
        The name of the "Generic" L*a*b* color space. This is the same as L*a*b* colorspace created by `CGColorSpaceCreateLab' with white_point[0.9642, 1.0, 0.8249] (i.e. D50), black_point[0.0, 0.0, 0.0] and range [-128, 128, -128, 128]. API-Since: 11.0
      • kCGPDFOutlineTitle

        @NotNull
        public static @NotNull CFStringRef kCGPDFOutlineTitle()
        Key: kCGPDFOutlineTitle Value: CFString API-Since: 11.0
      • kCGPDFOutlineChildren

        @NotNull
        public static @NotNull CFStringRef kCGPDFOutlineChildren()
        Key: kCGPDFOutlineChildren Value: CFArray of CFDictionaries API-Since: 11.0
      • kCGPDFOutlineDestination

        @NotNull
        public static @NotNull CFStringRef kCGPDFOutlineDestination()
        Key: kCGPDFOutlineDestination Value: CFNumber (for a one-indexed page number) or CFURL API-Since: 11.0
      • kCGPDFOutlineDestinationRect

        @NotNull
        public static @NotNull CFStringRef kCGPDFOutlineDestinationRect()
        Key: kCGPDFOutlineDestinationRect Value: CFDictionary from CGRectCreateDictionaryRepresentation. Only valid when the destination is a page number. API-Since: 11.0
      • kCGColorConversionTRCSize

        @NotNull
        public static @NotNull CFStringRef kCGColorConversionTRCSize()
        API-Since: 11.0
      • kCGPDFContextAccessPermissions

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextAccessPermissions()
        The document's access permissions, expressed as a CFNumber. The number is defined by ORing together the desired CGPDFAccessPermissions values. API-Since: 11.0
      • CGColorSpaceIsHDR

        @Deprecated
        public static boolean CGColorSpaceIsHDR​(@NotNull
                                                @NotNull CGColorSpaceRef arg1)
        Deprecated.
        Return true if color space uses transfer functions defined in ITU Rec.2100 Please use CGColorSpaceUsesITUR_2100TF instead API-Since: 13.0 Deprecated-Since: 13.4 Deprecated-Message: No longer supported
      • CGColorSpaceCopyPropertyList

        @Nullable
        public static @Nullable org.moe.natj.general.ptr.ConstVoidPtr CGColorSpaceCopyPropertyList​(@NotNull
                                                                                                   @NotNull CGColorSpaceRef space)
        CGColorSpaceCopyPropertyList will return NULL for special color spaces (e.g. kCGColorSpaceDeviceN or kCGColorSpacePattern), except Indexed Color Space API-Since: 10.0
      • CGColorSpaceCreateWithPropertyList

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceCreateWithPropertyList​(@NotNull
                                                                                   @NotNull org.moe.natj.general.ptr.ConstVoidPtr plist)
        API-Since: 10.0
      • CGColorCreateGenericGrayGamma2_2

        @NotNull
        public static @NotNull CGColorRef CGColorCreateGenericGrayGamma2_2​(double gray,
                                                                           double alpha)
        Create a color in the "Generic Gray Gamma 2.2 color space. API-Since: 13.0
      • CGColorCreateSRGB

        @NotNull
        public static @NotNull CGColorRef CGColorCreateSRGB​(double red,
                                                            double green,
                                                            double blue,
                                                            double alpha)
        Create a color in sRGB color space. API-Since: 13.0
      • CGImageGetByteOrderInfo

        public static int CGImageGetByteOrderInfo​(@Nullable
                                                  @Nullable CGImageRef image)
        Return the byte order info of `image'. API-Since: 12.0
      • CGImageGetPixelFormatInfo

        public static int CGImageGetPixelFormatInfo​(@Nullable
                                                    @Nullable CGImageRef image)
        Return the pixel format of `image'. API-Since: 12.0
      • CGPDFArrayApplyBlock

        public static void CGPDFArrayApplyBlock​(@Nullable
                                                @Nullable CGPDFArrayRef array,
                                                @Nullable
                                                @Nullable CoreGraphics.Block_CGPDFArrayApplyBlock block,
                                                @Nullable
                                                @Nullable org.moe.natj.general.ptr.VoidPtr info)
        Enumerate all of the objects in `array', calling the block-function `block' once for each value in the array. Passes the current iterator index, the current value, and `info' to `block'. If `block' returns true, iteration will continue over all values. If `block' returns false, iteration will stop and return early. API-Since: 12.0
      • CGPDFDictionaryApplyBlock

        public static void CGPDFDictionaryApplyBlock​(@Nullable
                                                     @Nullable CGPDFDictionaryRef dict,
                                                     @Nullable
                                                     @Nullable CoreGraphics.Block_CGPDFDictionaryApplyBlock block,
                                                     @Nullable
                                                     @Nullable org.moe.natj.general.ptr.VoidPtr info)
        Enumerate all of the keys in `dict', calling the block-function `block' once for each key/value pair. Passes the current key, the associated value, and `info' to `block'. If `block' returns true, iteration will continue over all key/value pairs. If `block' returns false, iteration will stop and return early. API-Since: 12.0
      • CGPDFTagTypeGetName

        @Nullable
        public static @Nullable java.lang.String CGPDFTagTypeGetName​(int tagType)
        For a given CGPDFTagType, return a C-string that matches the names defined in section 10.7.3: Standard Structure Types. These are defined on pages 899 - 912. Returns NULL for an unknown value. API-Since: 13.0
      • CGPDFContextBeginTag

        public static void CGPDFContextBeginTag​(@NotNull
                                                @NotNull CGContextRef context,
                                                int tagType,
                                                @Nullable
                                                @Nullable CFDictionaryRef tagProperties)
        Sets the current tag to the given tagType with an associated tagProperties dictionary. The previous tag will be pushed to a tag-stack. The previous tag can be restored through CGPDFContextEndTag(...). This new tag will record any future drawing commands to the given context as part of itself, unless another tag is pushed or the tag is popped. When the PDF context is serialized to a PDF file, these tags will create marked content sequences around the associated draw commands around the page's content stream. Note that tagProperties is an optional dictionary that allows you to specificy additional properties of the marked content: content may want to re-declare how text should be extracted, any alt text for figures, or explicitly declare what language the text is in. All child-tags (tags pushed on top of other tags) will inherit their parent tag's properties. API-Since: 13.0
      • CGPDFContextEndTag

        public static void CGPDFContextEndTag​(@NotNull
                                              @NotNull CGContextRef context)
        Pop the current tag. Sets the current tag to the previous tag on the tag-stack. If there was no previous tag, then the current tag will be set to the root document tag (of type CGPDFTagTypeDocument). API-Since: 13.0
      • kCGColorSpaceExtendedLinearITUR_2020

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceExtendedLinearITUR_2020()
        API-Since: 12.3
      • kCGColorSpaceExtendedLinearDisplayP3

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceExtendedLinearDisplayP3()
        API-Since: 12.3
      • kCGColorSpaceITUR_2020_PQ_EOTF

        @NotNull
        @Deprecated
        public static @NotNull CFStringRef kCGColorSpaceITUR_2020_PQ_EOTF()
        Deprecated.
        API-Since: 12.6 Deprecated-Since: 13.4 Deprecated-Message: No longer supported
      • kCGColorSpaceDisplayP3_PQ_EOTF

        @NotNull
        @Deprecated
        public static @NotNull CFStringRef kCGColorSpaceDisplayP3_PQ_EOTF()
        Deprecated.
        API-Since: 12.6 Deprecated-Since: 13.4 Deprecated-Message: No longer supported
      • kCGColorSpaceDisplayP3_HLG

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceDisplayP3_HLG()
        API-Since: 12.6
      • kCGColorSpaceITUR_2020_HLG

        @NotNull
        @Deprecated
        public static @NotNull CFStringRef kCGColorSpaceITUR_2020_HLG()
        Deprecated.
        API-Since: 12.6 Deprecated-Since: 14.0 Deprecated-Message: No longer supported
      • kCGPDFTagPropertyActualText

        @NotNull
        public static @NotNull CFStringRef kCGPDFTagPropertyActualText()
        Actual text, defined on page 860: "Text that is an exact replacement for the structure element and its children..." "...useful when extracting the document’s contents in support of accessibility..." This can be used to more precisely control what string is extracted by a user when they copy and paste from a document. API-Since: 13.0
      • kCGPDFTagPropertyAlternativeText

        @NotNull
        public static @NotNull CFStringRef kCGPDFTagPropertyAlternativeText()
        Alternative text, defined on page 860: "An alternate description of the structure element and its children in human-readable form". This is typically used for graphical content, like an image. API-Since: 13.0
      • kCGPDFTagPropertyTitleText

        @NotNull
        public static @NotNull CFStringRef kCGPDFTagPropertyTitleText()
        Title, defined on page 859: Title of the node in a human-readable form. This should *not* be used for accessibility, but can be useful when presenting the structure of a tagged node tree. API-Since: 13.0
      • kCGPDFTagPropertyLanguageText

        @NotNull
        public static @NotNull CFStringRef kCGPDFTagPropertyLanguageText()
        Language of text content, defined on page 860: Typically you should use the document's catalog to get its language, but if a section of text is not the same language as the document, this may be set and allow you to look at what language it is hinting at. API-Since: 13.0
      • kCGColorSpaceITUR_2020_PQ

        @NotNull
        @Deprecated
        public static @NotNull CFStringRef kCGColorSpaceITUR_2020_PQ()
        Deprecated.
        API-Since: 13.4 Deprecated-Since: 14.0 Deprecated-Message: No longer supported
      • kCGColorSpaceDisplayP3_PQ

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceDisplayP3_PQ()
        API-Since: 13.4
      • CGColorSpaceUsesExtendedRange

        public static boolean CGColorSpaceUsesExtendedRange​(@NotNull
                                                            @NotNull CGColorSpaceRef space)
        Return true if `space' uses extended range [-Inf, +Inf]; false otherwise. API-Since: 10.0
      • CGColorCreateGenericGray

        @NotNull
        public static @NotNull CGColorRef CGColorCreateGenericGray​(double gray,
                                                                   double alpha)
        Create a color in the "Generic" gray color space. API-Since: 13.0
      • CGColorCreateGenericRGB

        @NotNull
        public static @NotNull CGColorRef CGColorCreateGenericRGB​(double red,
                                                                  double green,
                                                                  double blue,
                                                                  double alpha)
        Create a color in the "Generic" RGB color space. API-Since: 13.0
      • CGColorCreateGenericCMYK

        @NotNull
        public static @NotNull CGColorRef CGColorCreateGenericCMYK​(double cyan,
                                                                   double magenta,
                                                                   double yellow,
                                                                   double black,
                                                                   double alpha)
        Create a color in the "Generic" CMYK color space. API-Since: 13.0
      • CGColorGetConstantColor

        @Nullable
        public static @Nullable CGColorRef CGColorGetConstantColor​(@Nullable
                                                                   @Nullable CFStringRef colorName)
        Return a constant color. As `CGColorGetConstantColor' is not a "Copy" or "Create" function, it does not necessarily return a new reference each time it's called. As a consequence, you should not release the returned value. However, colors returned from `CGColorGetConstantColor' can be retained and released in a properly nested fashion, just like any other CF type. API-Since: 14.0
      • kCGColorSpaceITUR_2100_PQ

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceITUR_2100_PQ()
        API-Since: 14.0
      • kCGColorSpaceITUR_2100_HLG

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceITUR_2100_HLG()
        API-Since: 14.0
      • kCGColorWhite

        @NotNull
        public static @NotNull CFStringRef kCGColorWhite()
        Colors in the "Generic" gray color space. API-Since: 14.0
      • kCGColorBlack

        @NotNull
        public static @NotNull CFStringRef kCGColorBlack()
        API-Since: 14.0
      • kCGColorClear

        @NotNull
        public static @NotNull CFStringRef kCGColorClear()
        API-Since: 14.0
      • kCGPDFContextOutputIntent

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextOutputIntent()
        The document's PDF/X output intent. Optional; if present, the value of this key must be a CFDictionaryRef. The dictionary is added to the /OutputIntents entry in the PDF file's document catalog. The keys and values contained in the dictionary must match those specified in section 9.10.4 of the PDF 1.4 specification, ISO/DIS 15930-3 document published by ISO/TC 130, and Adobe Technical Note #5413. API-Since: 14.0
      • kCGPDFXOutputIntentSubtype

        @NotNull
        public static @NotNull CFStringRef kCGPDFXOutputIntentSubtype()
        The following keys are supported in the output intent dictionary: kCGPDFXOutputIntentSubtype ("S"): The output intent subtype. This key is required; the value of this key must be a CFString equal to "GTS_PDFX"; otherwise, the dictionary is ignored. API-Since: 14.0
      • kCGPDFXOutputConditionIdentifier

        @NotNull
        public static @NotNull CFStringRef kCGPDFXOutputConditionIdentifier()
        kCGPDFXOutputConditionIdentifier ("OutputConditionIdentifier"): A string identifying the intended output device or production condition in a human- or machine-readable form. This key is required; the value of this key must be a CFString. For best results, the string should be representable losslessly in ASCII encoding. API-Since: 14.0
      • kCGPDFXOutputCondition

        @NotNull
        public static @NotNull CFStringRef kCGPDFXOutputCondition()
        kCGPDFXOutputCondition ("OutputCondition"): A text string identifying the intended output device or production condition in a human-readable form. This key is optional; if present, the value of this key must be a CFString. API-Since: 14.0
      • kCGPDFXRegistryName

        @NotNull
        public static @NotNull CFStringRef kCGPDFXRegistryName()
        kCGPDFXRegistryName ("RegistryName"): A string identifying the registry in which the condition designated by `kCGPDFXOutputConditionIdentifier' is defined. This key is optional; if present, the value of this key must be a CFString. For best results, the string should be representable losslessly in ASCII encoding. API-Since: 14.0
      • kCGPDFXInfo

        @NotNull
        public static @NotNull CFStringRef kCGPDFXInfo()
        kCGPDFXInfo ("Info"): A human-readable text string containing additional information about the intended target device or production condition. This key is required if the value of `kCGPDFXOutputConditionIdentifier' does not specify a standard production condition; it is optional otherwise. If present, the value of this key must be a CFString. API-Since: 14.0
      • kCGPDFXDestinationOutputProfile

        @NotNull
        public static @NotNull CFStringRef kCGPDFXDestinationOutputProfile()
        kCGPDFXDestinationOutputProfile ("DestOutputProfile"): An ICC profile stream defining the transformation from the PDF document's source colors to output device colorants. This key is required if the value of `kCGPDFXOutputConditionIdentifier' does not specify a standard production condition; it is optional otherwise. If present, the value of this key must be a ICC-based CGColorSpaceRef. API-Since: 14.0
      • kCGPDFContextOutputIntents

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextOutputIntents()
        The document's output intents. Optional; if present, the value must be a CFArrayRef containing one or more CFDictionaryRefs. The array is added to the PDF document in the /OutputIntents entry in the PDF file's document catalog. Each dictionary in the array must be of form specified above for the `kCGPDFContextOutputIntent' key, except that only the first dictionary in the array may contain the `kCGPDFXOutputIntentSubtype' ("S") key with a value of "GTS_PDFX". If both `kCGPDFContextOutputIntent' and `kCGPDFContextOutputIntents' keys are specified, the former is ignored. API-Since: 14.0
      • kCGPDFContextCreateLinearizedPDF

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextCreateLinearizedPDF()
        Output a linearized PDF API-Since: 14.0
      • kCGPDFContextCreatePDFA

        @NotNull
        public static @NotNull CFStringRef kCGPDFContextCreatePDFA()
        Output a PDF that conforms to PDF/A-2u (ISO 19005-2). The value of this key must be a CFBooleanRef. The default value of this key is "kCFBooleanFalse". API-Since: 14.0
      • CGColorSpaceUsesITUR_2100TF

        public static boolean CGColorSpaceUsesITUR_2100TF​(@NotNull
                                                          @NotNull CGColorSpaceRef arg1)
        Return true if color space uses transfer functions defined in ITU Rec.2100 API-Since: 14.0
      • CGColorSpaceCreateLinearized

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceCreateLinearized​(@NotNull
                                                                             @NotNull CGColorSpaceRef space)
        Create a linearized copy of the color space if the color space is matrix based. Return NULL if otherwise API-Since: 14.0
      • CGColorSpaceCreateExtended

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceCreateExtended​(@NotNull
                                                                           @NotNull CGColorSpaceRef space)
        Create a copy of the color space which uses extended range [-Inf, +Inf] if the color space is matrix based. Return NULL if otherwise API-Since: 14.0
      • CGColorSpaceCreateExtendedLinearized

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceCreateExtendedLinearized​(@NotNull
                                                                                     @NotNull CGColorSpaceRef space)
        Create a linearized copy of the color space which uses extended range [-Inf, +Inf] if the color space is matrix based. Return NULL if otherwise API-Since: 14.0
      • kCGColorSpaceExtendedITUR_2020

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceExtendedITUR_2020()
        API-Since: 14.0
      • kCGColorSpaceExtendedDisplayP3

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceExtendedDisplayP3()
        API-Since: 14.0
      • CGColorSpaceCreateWithColorSyncProfile

        @Nullable
        public static @Nullable CGColorSpaceRef CGColorSpaceCreateWithColorSyncProfile​(@Nullable
                                                                                       @Nullable ColorSyncProfileRef arg1,
                                                                                       @Nullable
                                                                                       @Nullable CFDictionaryRef options)
        Create a color space using ColorSyncProfileRef. To create an extended color space include kCGColorSpaceExtendedRange/kCFBooleanTrue key/value pair in `options' dictionary. API-Since: 15.0
      • CGColorSpaceIsPQBased

        public static boolean CGColorSpaceIsPQBased​(@NotNull
                                                    @NotNull CGColorSpaceRef s)
        API-Since: 15.0
      • CGColorSpaceIsHLGBased

        public static boolean CGColorSpaceIsHLGBased​(@NotNull
                                                     @NotNull CGColorSpaceRef s)
        API-Since: 15.0
      • CGConvertColorDataWithFormat

        public static boolean CGConvertColorDataWithFormat​(long width,
                                                           long height,
                                                           org.moe.natj.general.ptr.VoidPtr dst_data,
                                                           CGColorDataFormat dst_format,
                                                           org.moe.natj.general.ptr.VoidPtr src_data,
                                                           CGColorDataFormat src_format,
                                                           CFDictionaryRef options)
      • CGErrorSetCallback

        public static void CGErrorSetCallback​(CoreGraphics.Function_CGErrorSetCallback callback)
        Set a callback for easier detection of error conditions causing CoreGraphics to raise an error. Pass NULL to reset the callback.
      • kCGColorSpaceLinearITUR_2020

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceLinearITUR_2020()
        API-Since: 15.0
      • kCGColorSpaceLinearDisplayP3

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceLinearDisplayP3()
        API-Since: 15.0
      • kCGColorSpaceExtendedRange

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceExtendedRange()
      • kCGColorSpaceITUR_709_PQ

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceITUR_709_PQ()
        API-Since: 15.1
      • kCGColorSpaceITUR_2020_sRGBGamma

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceITUR_2020_sRGBGamma()
        API-Since: 15.1
      • CGAffineTransformDecompose

        public static CGAffineTransformComponents CGAffineTransformDecompose​(CGAffineTransform transform)
        Decompose a CGAffineTransform into a scale * shear * rotation * translation This decomposition method may be used to provide insight into what a arbitrary CGAffineTransform does. This may be necessary, for example, because an algorithm would like to know what the scaling portion of a transform is before rotation, or perhaps because some part of a transform is undesired and your application would like to replace a portion of it with a different transformation. Since there are many ways to make a affine transform out of other affine transforms this method can not tell us the ordering of geometric steps used to create the original CGAffineTransform. It tells us what the transform does, not how it was made.
        Parameters:
        transform - The CGAffineTransform to decompose
        Returns:
        A decomposed set of geometric operations, the product of which is the CGAffineTransform. API-Since: 16.0
      • CGAffineTransformMakeWithComponents

        public static CGAffineTransform CGAffineTransformMakeWithComponents​(CGAffineTransformComponents components)
        Create CGAffineTransform from scale * shear * rotation * translation CGAffineTransformComponents
        Parameters:
        components - The set of CGAffineTransformComponents to use to create a new CGAffineTransform
        Returns:
        A new CGAffineTransform built from the provided components API-Since: 16.0
      • CGColorSpaceCreateCopyWithStandardRange

        @NotNull
        public static @NotNull CGColorSpaceRef CGColorSpaceCreateCopyWithStandardRange​(@NotNull
                                                                                       @NotNull CGColorSpaceRef s)
        Create a copy of the color space which uses standard range [0.0, 1.0]. API-Since: 16.0
      • CGPathCreateCopyByNormalizing

        @Nullable
        public static @Nullable CGPathRef CGPathCreateCopyByNormalizing​(@Nullable
                                                                        @Nullable CGPathRef path,
                                                                        boolean evenOddFillRule)
        Returns a new weakly-simple path without self-intersections and with a normalized orientation. Filling the resulting path using even-odd or non-zero filling is identical. API-Since: 16.0
      • CGPathCreateCopyByUnioningPath

        @Nullable
        public static @Nullable CGPathRef CGPathCreateCopyByUnioningPath​(@Nullable
                                                                         @Nullable CGPathRef path,
                                                                         @Nullable
                                                                         @Nullable CGPathRef maskPath,
                                                                         boolean evenOddFillRule)
        Returns a new path created by unioning `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. The resulting path is suitable for either even-odd or non-zero filling. API-Since: 16.0
      • CGPathCreateCopyByIntersectingPath

        @Nullable
        public static @Nullable CGPathRef CGPathCreateCopyByIntersectingPath​(@Nullable
                                                                             @Nullable CGPathRef path,
                                                                             @Nullable
                                                                             @Nullable CGPathRef maskPath,
                                                                             boolean evenOddFillRule)
        Returns a new path created by intersecting `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. The resulting path is suitable for either even-odd or non-zero filling. API-Since: 16.0
      • CGPathCreateCopyBySubtractingPath

        @Nullable
        public static @Nullable CGPathRef CGPathCreateCopyBySubtractingPath​(@Nullable
                                                                            @Nullable CGPathRef path,
                                                                            @Nullable
                                                                            @Nullable CGPathRef maskPath,
                                                                            boolean evenOddFillRule)
        Returns a new path created by subtracting `maskPath` from `path`. Any unclosed subpaths in either path are assumed to be closed. The resulting path is suitable for either even-odd or non-zero filling. API-Since: 16.0
      • CGPathCreateCopyBySymmetricDifferenceOfPath

        @Nullable
        public static @Nullable CGPathRef CGPathCreateCopyBySymmetricDifferenceOfPath​(@Nullable
                                                                                      @Nullable CGPathRef path,
                                                                                      @Nullable
                                                                                      @Nullable CGPathRef maskPath,
                                                                                      boolean evenOddFillRule)
        Returns a new path created by exclusive or-ing `path` and `maskPath`. Any unclosed subpaths in either path are assumed to be closed. The resulting path is suitable for either even-odd or non-zero filling. API-Since: 16.0
      • CGPathCreateCopyOfLineBySubtractingPath

        @Nullable
        public static @Nullable CGPathRef CGPathCreateCopyOfLineBySubtractingPath​(@Nullable
                                                                                  @Nullable CGPathRef path,
                                                                                  @Nullable
                                                                                  @Nullable CGPathRef maskPath,
                                                                                  boolean evenOddFillRule)
        Returns a new path created by subtracting the `maskPath` from the line of `path` with the fill of `maskPath`. This returns a potentially open path. API-Since: 16.0
      • CGPathCreateCopyOfLineByIntersectingPath

        @Nullable
        public static @Nullable CGPathRef CGPathCreateCopyOfLineByIntersectingPath​(@Nullable
                                                                                   @Nullable CGPathRef path,
                                                                                   @Nullable
                                                                                   @Nullable CGPathRef maskPath,
                                                                                   boolean evenOddFillRule)
        Returns a new path created by intersecting the line of `path` and the fill of `maskPath`. This returns a potentially open path. API-Since: 16.0
      • CGPathCreateSeparateComponents

        @Nullable
        public static @Nullable CFArrayRef CGPathCreateSeparateComponents​(@Nullable
                                                                          @Nullable CGPathRef path,
                                                                          boolean evenOddFillRule)
        Return an array of the visually separated components of a path. API-Since: 16.0
      • CGPathCreateCopyByFlattening

        @Nullable
        public static @Nullable CGPathRef CGPathCreateCopyByFlattening​(@Nullable
                                                                       @Nullable CGPathRef path,
                                                                       double flatteningThreshold)
        Returns a new path that is flattened, converting all curved line segments into straight line approximations. The granularity of the approximations is controlled by `flatteningThreshold` the maximum error tolerance (measured in points) for curves. API-Since: 16.0
      • CGPathIntersectsPath

        public static boolean CGPathIntersectsPath​(@Nullable
                                                   @Nullable CGPathRef path1,
                                                   @Nullable
                                                   @Nullable CGPathRef path2,
                                                   boolean evenOddFillRule)
        Returns true if path1 and path2 overlap. API-Since: 16.0
      • CGPDFScannerStop

        public static void CGPDFScannerStop​(@NotNull
                                            @NotNull CGPDFScannerRef s)
        Cleanly stop the scanner on the current operator, releasing any temporary resources.
      • kCGColorSpaceITUR_709_HLG

        @NotNull
        public static @NotNull CFStringRef kCGColorSpaceITUR_709_HLG()
        API-Since: 15.1
      • CGContextDrawConicGradient

        public static void CGContextDrawConicGradient​(@NotNull
                                                      @NotNull CGContextRef c,
                                                      @Nullable
                                                      @Nullable CGGradientRef gradient,
                                                      CGPoint center,
                                                      double angle)
        Fill the current clipping region of `context' with a conic gradient defined by the center point and rotation angle. The location 0 of `gradient' corresponds to a initial rotation angle; the location 1 of `gradient' corresponds to 360 degrees rotation from rotation angle; colors are linearly interpolated over the full angle based on the values of the gradient's locations. The 0 angle corresponds to positive x axis. The angle increases towards positive y axis. API-Since: 17.0