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:
java.lang.AutoCloseable
public class CGColor extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CGColor.AsListMarshaler
static class
CGColor.CGColorPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CGColor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CGColor
create(CGColorSpace space, double[] components)
static CGColor
create(CGColorSpace space, float[] components)
static CGColor
create(CGColorSpace space, CGPattern pattern, double[] components)
static CGColor
create(CGColorSpace space, CGPattern pattern, float[] components)
static CGColor
createCopy(CGColor color)
static CGColor
createCopy(CGColor color, double alpha)
static CGColor
createCopy(CGColorSpace p0, CGColorRenderingIntent intent, CGColor color, NSDictionary options)
boolean
equalsTo(CGColor color2)
double
getAlpha()
static long
getClassTypeID()
CGColorSpace
getColorSpace()
double[]
getComponentsD()
float[]
getComponentsF()
long
getNumberOfComponents()
CGPattern
getPattern()
-
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
-
-
-
-
Method Detail
-
create
public static CGColor create(CGColorSpace space, float[] components)
-
create
public static CGColor create(CGColorSpace space, double[] components)
-
create
public static CGColor create(CGColorSpace space, CGPattern pattern, float[] components)
-
create
public static CGColor create(CGColorSpace space, CGPattern pattern, double[] components)
-
getComponentsD
public double[] getComponentsD()
-
getComponentsF
public float[] getComponentsF()
-
createCopy
public static CGColor createCopy(CGColor color, double alpha)
- Since:
- Available in iOS 2.0 and later.
-
createCopy
public static CGColor createCopy(CGColorSpace p0, CGColorRenderingIntent intent, CGColor color, NSDictionary options)
- Since:
- Available in iOS 9.0 and later.
-
equalsTo
public boolean equalsTo(CGColor color2)
- Since:
- Available in iOS 2.0 and later.
-
getNumberOfComponents
public long getNumberOfComponents()
- Since:
- Available in iOS 2.0 and later.
-
getAlpha
public double getAlpha()
- Since:
- Available in iOS 2.0 and later.
-
getColorSpace
public CGColorSpace getColorSpace()
- Since:
- Available in iOS 2.0 and later.
-
getPattern
public CGPattern getPattern()
- Since:
- Available in iOS 2.0 and later.
-
getClassTypeID
public static long getClassTypeID()
- Since:
- Available in iOS 2.0 and later.
-
-