Package org.robovm.apple.coregraphics
Class CGColor
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.apple.corefoundation.CFType
org.robovm.apple.coregraphics.CGColor
- All Implemented Interfaces:
AutoCloseable
public class CGColor extends CFType
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCGColor.AsListMarshalerstatic classCGColor.CGColorPtrstatic classCGColor.ConstantColorsNested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler -
Constructor Summary
Constructors Modifier Constructor Description protectedCGColor() -
Method Summary
Modifier and Type Method Description static CGColorcreate(CGColorSpace space, double[] components)static CGColorcreate(CGColorSpace space, float[] components)static CGColorcreate(CGColorSpace space, CGPattern pattern, double[] components)static CGColorcreate(CGColorSpace space, CGPattern pattern, float[] components)static CGColorcreateCopy(CGColor color)static CGColorcreateCopy(CGColor color, double alpha)static CGColorcreateCopy(CGColorSpace p0, CGColorRenderingIntent intent, CGColor color, NSDictionary options)static CGColorcreateGenericCMYK(double cyan, double magenta, double yellow, double black, double alpha)static CGColorcreateGenericGray(double gray, double alpha)static CGColorcreateGenericGrayGamma2_2(double gray, double alpha)static CGColorcreateGenericRGB(double red, double green, double blue, double alpha)static CGColorcreateSRGB(double red, double green, double blue, double alpha)booleanequalsTo(CGColor color2)doublegetAlpha()static longgetClassTypeID()CGColorSpacegetColorSpace()double[]getComponentsD()float[]getComponentsF()static CGColorgetConstantColor(String colorName)longgetNumberOfComponents()CGPatterngetPattern()Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
Constructor Details
-
CGColor
protected CGColor()
-
-
Method Details
-
create
-
create
-
create
-
create
-
getComponentsD
public double[] getComponentsD() -
getComponentsF
public float[] getComponentsF() -
createGenericGray
- Since:
- Available in iOS 13.0 and later.
-
createGenericRGB
- Since:
- Available in iOS 13.0 and later.
-
createGenericCMYK
public static CGColor createGenericCMYK(double cyan, double magenta, double yellow, double black, double alpha)- Since:
- Available in iOS 13.0 and later.
-
createGenericGrayGamma2_2
- Since:
- Available in iOS 13.0 and later.
-
createSRGB
- Since:
- Available in iOS 13.0 and later.
-
getConstantColor
- Since:
- Available in iOS 14.0 and later.
-
createCopy
-
createCopy
-
createCopy
public static CGColor createCopy(CGColorSpace p0, CGColorRenderingIntent intent, CGColor color, NSDictionary options)- Since:
- Available in iOS 9.0 and later.
-
equalsTo
-
getNumberOfComponents
public long getNumberOfComponents() -
getAlpha
public double getAlpha() -
getColorSpace
-
getPattern
-
getClassTypeID
public static long getClassTypeID()
-