Package org.robovm.apple.uikit
Class UIColor
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.objc.ObjCObject
-
- org.robovm.apple.foundation.NSObject
-
- org.robovm.apple.uikit.UIColor
-
- All Implemented Interfaces:
NSCoding
,NSItemProviderReading
,NSItemProviderWriting
,NSObjectProtocol
,NSSecureCoding
,org.robovm.objc.ObjCProtocol
public class UIColor extends NSObject implements NSSecureCoding, NSItemProviderReading, NSItemProviderWriting
- Since:
- Available in iOS 2.0 and later.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UIColor.UIColorPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInit
-
-
Field Summary
-
Fields inherited from class org.robovm.apple.foundation.NSObject
FLAG_NO_RETAIN
-
-
Constructor Summary
Constructors Modifier Constructor Description UIColor()
UIColor(double red, double green, double blue, double alpha)
UIColor(CGColor cgColor)
UIColor(CIColor ciColor)
UIColor(NSCoder decoder)
protected
UIColor(NSObject.Handle h, long handle)
protected
UIColor(NSObject.SkipInit skipInit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description UIColor
addAlpha(double alpha)
static UIColor
black()
static UIColor
blue()
static UIColor
brown()
static UIColor
clear()
static UIColor
colorNamed(java.lang.String name)
static UIColor
createProviderDataObject(NSData data, java.lang.String typeIdentifier)
static UIColor
cyan()
static UIColor
darkGray()
static UIColor
darkText()
void
encode(NSCoder coder)
static UIColor
fromCGColor(CGColor cgColor)
static UIColor
fromCIColor(CIColor ciColor)
static UIColor
fromDisplayP3(double displayP3Red, double green, double blue, double alpha)
static UIColor
fromHSBA(double hue, double saturation, double brightness, double alpha)
static UIColor
fromPatternImage(UIImage image)
static UIColor
fromResourceBundle(java.lang.String name, NSBundle bundle, UITraitCollection traitCollection)
static UIColor
fromRGBA(double red, double green, double blue, double alpha)
static UIColor
fromWhiteAlpha(double white, double alpha)
CGColor
getCGColor()
CIColor
getCIColor()
double[]
getHSBA()
protected boolean
getHSBA(org.robovm.rt.bro.ptr.MachineSizedFloatPtr hue, org.robovm.rt.bro.ptr.MachineSizedFloatPtr saturation, org.robovm.rt.bro.ptr.MachineSizedFloatPtr brightness, org.robovm.rt.bro.ptr.MachineSizedFloatPtr alpha)
NSItemProviderRepresentationVisibility
getItemProviderVisibility(java.lang.String typeIdentifier)
static NSItemProviderRepresentationVisibility
getItemProviderVisibility0(java.lang.String typeIdentifier)
static NSArray<NSString>
getReadableTypeIdentifiersForItemProvider()
double[]
getRGBA()
protected boolean
getRGBA(org.robovm.rt.bro.ptr.MachineSizedFloatPtr red, org.robovm.rt.bro.ptr.MachineSizedFloatPtr green, org.robovm.rt.bro.ptr.MachineSizedFloatPtr blue, org.robovm.rt.bro.ptr.MachineSizedFloatPtr alpha)
double[]
getWhiteAlpha()
protected boolean
getWhiteAlpha(org.robovm.rt.bro.ptr.MachineSizedFloatPtr white, org.robovm.rt.bro.ptr.MachineSizedFloatPtr alpha)
NSArray<NSString>
getWritableTypeIdentifiersForItemProvider()
static NSArray<NSString>
getWritableTypeIdentifiersForItemProvider0()
static UIColor
gray()
static UIColor
green()
static UIColor
groupTableViewBackground()
protected long
init(double red, double green, double blue, double alpha)
protected long
init(CGColor cgColor)
protected long
init(CIColor ciColor)
protected long
init(NSCoder decoder)
static UIColor
lightGray()
static UIColor
lightText()
NSProgress
loadData(java.lang.String typeIdentifier, org.robovm.objc.block.VoidBlock2<NSData,NSError> completionHandler)
static UIColor
magenta()
static UIColor
orange()
static UIColor
purple()
static UIColor
red()
static UIColor
scrollViewTexturedBackground()
Deprecated.Deprecated in iOS 7.0.void
setFill()
void
setFillAndStroke()
void
setStroke()
static boolean
supportsSecureCoding()
static UIColor
underPageBackground()
Deprecated.Deprecated in iOS 7.0.static UIColor
viewFlipsideBackground()
Deprecated.Deprecated in iOS 7.0.static UIColor
white()
static UIColor
yellow()
-
Methods inherited from class org.robovm.apple.foundation.NSObject
addKeyValueObserver, addKeyValueObserver, afterMarshaled, alloc, autorelease, autorelease, awakeFromNib, conformsToProtocol, copy, description, didChangeValue, didChangeValue, didChangeValues, doDispose, equals, forceSkipInit, getAutoContentAccessingProxy, getClassForCoder, getClassForKeyedArchiver, getKeyValueCoder, getObservationInfo, hash, hashCode, init, isEqual, isKindOfClass, isMemberOfClass, mutableCopy, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelector, performSelectorInBackground, performSelectorOnMainThread, performSelectorOnMainThread, performSelectorV, performSelectorV, performSelectorV, release, release, removeKeyValueObserver, removeKeyValueObservers, respondsToSelector, retain, retain, retainCount, setObservationInfo, toString, willChangeValue, willChangeValue, willChangeValues
-
-
-
-
Constructor Detail
-
UIColor
public UIColor()
-
UIColor
protected UIColor(NSObject.Handle h, long handle)
-
UIColor
protected UIColor(NSObject.SkipInit skipInit)
-
UIColor
public UIColor(double red, double green, double blue, double alpha)
-
UIColor
public UIColor(CGColor cgColor)
-
UIColor
public UIColor(CIColor ciColor)
- Since:
- Available in iOS 5.0 and later.
-
UIColor
public UIColor(NSCoder decoder)
-
-
Method Detail
-
black
public static UIColor black()
-
darkGray
public static UIColor darkGray()
-
lightGray
public static UIColor lightGray()
-
white
public static UIColor white()
-
gray
public static UIColor gray()
-
red
public static UIColor red()
-
green
public static UIColor green()
-
blue
public static UIColor blue()
-
cyan
public static UIColor cyan()
-
yellow
public static UIColor yellow()
-
magenta
public static UIColor magenta()
-
orange
public static UIColor orange()
-
purple
public static UIColor purple()
-
brown
public static UIColor brown()
-
clear
public static UIColor clear()
-
getCGColor
public CGColor getCGColor()
-
getCIColor
public CIColor getCIColor()
- Since:
- Available in iOS 5.0 and later.
-
lightText
public static UIColor lightText()
-
darkText
public static UIColor darkText()
-
groupTableViewBackground
public static UIColor groupTableViewBackground()
-
viewFlipsideBackground
@Deprecated public static UIColor viewFlipsideBackground()
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 2.0 and later.
-
scrollViewTexturedBackground
@Deprecated public static UIColor scrollViewTexturedBackground()
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 3.2 and later.
-
underPageBackground
@Deprecated public static UIColor underPageBackground()
Deprecated.Deprecated in iOS 7.0.- Since:
- Available in iOS 5.0 and later.
-
supportsSecureCoding
public static boolean supportsSecureCoding()
-
getReadableTypeIdentifiersForItemProvider
public static NSArray<NSString> getReadableTypeIdentifiersForItemProvider()
-
getWritableTypeIdentifiersForItemProvider0
public static NSArray<NSString> getWritableTypeIdentifiersForItemProvider0()
-
getWritableTypeIdentifiersForItemProvider
public NSArray<NSString> getWritableTypeIdentifiersForItemProvider()
- Specified by:
getWritableTypeIdentifiersForItemProvider
in interfaceNSItemProviderWriting
-
getWhiteAlpha
public double[] getWhiteAlpha()
-
getHSBA
public double[] getHSBA()
-
getRGBA
public double[] getRGBA()
-
init
protected long init(double red, double green, double blue, double alpha)
-
init
protected long init(CGColor cgColor)
-
init
protected long init(CIColor ciColor)
- Since:
- Available in iOS 5.0 and later.
-
setFillAndStroke
public void setFillAndStroke()
-
setFill
public void setFill()
-
setStroke
public void setStroke()
-
getWhiteAlpha
protected boolean getWhiteAlpha(org.robovm.rt.bro.ptr.MachineSizedFloatPtr white, org.robovm.rt.bro.ptr.MachineSizedFloatPtr alpha)
- Since:
- Available in iOS 5.0 and later.
-
getHSBA
protected boolean getHSBA(org.robovm.rt.bro.ptr.MachineSizedFloatPtr hue, org.robovm.rt.bro.ptr.MachineSizedFloatPtr saturation, org.robovm.rt.bro.ptr.MachineSizedFloatPtr brightness, org.robovm.rt.bro.ptr.MachineSizedFloatPtr alpha)
- Since:
- Available in iOS 5.0 and later.
-
getRGBA
protected boolean getRGBA(org.robovm.rt.bro.ptr.MachineSizedFloatPtr red, org.robovm.rt.bro.ptr.MachineSizedFloatPtr green, org.robovm.rt.bro.ptr.MachineSizedFloatPtr blue, org.robovm.rt.bro.ptr.MachineSizedFloatPtr alpha)
- Since:
- Available in iOS 5.0 and later.
-
addAlpha
public UIColor addAlpha(double alpha)
-
fromWhiteAlpha
public static UIColor fromWhiteAlpha(double white, double alpha)
-
fromHSBA
public static UIColor fromHSBA(double hue, double saturation, double brightness, double alpha)
-
fromRGBA
public static UIColor fromRGBA(double red, double green, double blue, double alpha)
-
fromDisplayP3
public static UIColor fromDisplayP3(double displayP3Red, double green, double blue, double alpha)
- Since:
- Available in iOS 10.0 and later.
-
fromCIColor
public static UIColor fromCIColor(CIColor ciColor)
- Since:
- Available in iOS 5.0 and later.
-
colorNamed
public static UIColor colorNamed(java.lang.String name)
- Since:
- Available in iOS 11.0 and later.
-
fromResourceBundle
public static UIColor fromResourceBundle(java.lang.String name, NSBundle bundle, UITraitCollection traitCollection)
- Since:
- Available in iOS 11.0 and later.
-
init
protected long init(NSCoder decoder)
-
createProviderDataObject
public static UIColor createProviderDataObject(NSData data, java.lang.String typeIdentifier) throws NSErrorException
- Throws:
NSErrorException
-
getItemProviderVisibility
public NSItemProviderRepresentationVisibility getItemProviderVisibility(java.lang.String typeIdentifier)
- Specified by:
getItemProviderVisibility
in interfaceNSItemProviderWriting
-
loadData
public NSProgress loadData(java.lang.String typeIdentifier, org.robovm.objc.block.VoidBlock2<NSData,NSError> completionHandler)
- Specified by:
loadData
in interfaceNSItemProviderWriting
-
getItemProviderVisibility0
public static NSItemProviderRepresentationVisibility getItemProviderVisibility0(java.lang.String typeIdentifier)
-
-