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,ObjCProtocol
public class UIColor extends NSObject implements NSSecureCoding, NSItemProviderReading, NSItemProviderWriting
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUIColor.UIColorPtrNested classes/interfaces inherited from class org.robovm.apple.foundation.NSObject
NSObject.Handle, NSObject.Marshaler, NSObject.NoRetainMarshaler, NSObject.NSKeyValueObserver, NSObject.NSObjectPtr, NSObject.SkipInitNested classes/interfaces inherited from class org.robovm.objc.ObjCObject
ObjCObject.ObjCObjectPtr, ObjCObject.Super -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description UIColor()UIColor(double red, double green, double blue, double alpha)UIColor(CGColor cgColor)UIColor(CIColor ciColor)UIColor(NSCoder coder)protectedUIColor(NSObject.Handle h, long handle)protectedUIColor(NSObject.SkipInit skipInit)UIColor(Block1<UITraitCollection,UIColor> dynamicProvider) -
Method Summary
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, willChangeValuesMethods inherited from class org.robovm.objc.ObjCObject
addStrongRef, dispose, dispose, finalize, getAssociatedObject, getObjCClass, getPeerObject, getSuper, initObject, logRetainRelease, removeStrongRef, retainCustomObjectFromCb, setAssociatedObject, toObjCObject, toObjCObject, updateStrongRef
-
Constructor Details
-
Method Details
-
black
-
darkGray
-
lightGray
-
white
-
gray
-
red
-
green
-
blue
-
cyan
-
yellow
-
magenta
-
orange
-
purple
-
brown
-
clear
-
getCGColor
-
getCIColor
-
systemRed
-
systemGreen
-
systemBlue
-
systemOrange
-
systemYellow
-
systemPink
-
systemPurple
- Since:
- Available in iOS 9.0 and later.
-
systemTeal
-
systemIndigo
- Since:
- Available in iOS 13.0 and later.
-
systemBrown
- Since:
- Available in iOS 13.0 and later.
-
systemMint
- Since:
- Available in iOS 15.0 and later.
-
systemCyan
- Since:
- Available in iOS 15.0 and later.
-
systemGray
-
systemGray2
- Since:
- Available in iOS 13.0 and later.
-
systemGray3
- Since:
- Available in iOS 13.0 and later.
-
systemGray4
- Since:
- Available in iOS 13.0 and later.
-
systemGray5
- Since:
- Available in iOS 13.0 and later.
-
systemGray6
- Since:
- Available in iOS 13.0 and later.
-
tint
- Since:
- Available in iOS 15.0 and later.
-
label
- Since:
- Available in iOS 13.0 and later.
-
secondaryLabel
- Since:
- Available in iOS 13.0 and later.
-
tertiaryLabel
- Since:
- Available in iOS 13.0 and later.
-
quaternaryLabel
- Since:
- Available in iOS 13.0 and later.
-
link
- Since:
- Available in iOS 13.0 and later.
-
placeholderText
- Since:
- Available in iOS 13.0 and later.
-
separator
- Since:
- Available in iOS 13.0 and later.
-
opaqueSeparator
- Since:
- Available in iOS 13.0 and later.
-
systemBackground
- Since:
- Available in iOS 13.0 and later.
-
secondarySystemBackground
- Since:
- Available in iOS 13.0 and later.
-
tertiarySystemBackground
- Since:
- Available in iOS 13.0 and later.
-
systemGroupedBackground
- Since:
- Available in iOS 13.0 and later.
-
secondarySystemGroupedBackground
- Since:
- Available in iOS 13.0 and later.
-
tertiarySystemGroupedBackground
- Since:
- Available in iOS 13.0 and later.
-
systemFill
- Since:
- Available in iOS 13.0 and later.
-
secondarySystemFill
- Since:
- Available in iOS 13.0 and later.
-
tertiarySystemFill
- Since:
- Available in iOS 13.0 and later.
-
quaternarySystemFill
- Since:
- Available in iOS 13.0 and later.
-
lightText
-
darkText
-
groupTableViewBackground
Deprecated.Deprecated in iOS 13.0. Use systemGroupedBackgroundColor -
viewFlipsideBackground
Deprecated.Deprecated in iOS 7.0. -
scrollViewTexturedBackground
Deprecated.Deprecated in iOS 7.0. -
underPageBackground
Deprecated.Deprecated in iOS 7.0. -
getAccessibilityName
- Since:
- Available in iOS 14.0 and later.
-
supportsSecureCoding
public static boolean supportsSecureCoding() -
getReadableTypeIdentifiersForItemProvider
-
getWritableTypeIdentifiersForItemProvider0
-
getWritableTypeIdentifiersForItemProvider
- Specified by:
getWritableTypeIdentifiersForItemProviderin 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
-
init
-
setFillAndStroke
public void setFillAndStroke() -
setFill
public void setFill() -
setStroke
public void setStroke() -
getWhiteAlpha
-
getHSBA
protected boolean getHSBA(MachineSizedFloatPtr hue, MachineSizedFloatPtr saturation, MachineSizedFloatPtr brightness, MachineSizedFloatPtr alpha) -
getRGBA
protected boolean getRGBA(MachineSizedFloatPtr red, MachineSizedFloatPtr green, MachineSizedFloatPtr blue, MachineSizedFloatPtr alpha) -
addAlpha
-
fromWhiteAlpha
-
fromHSBA
-
fromRGBA
-
fromDisplayP3
- Since:
- Available in iOS 10.0 and later.
-
fromCGColor
-
fromPatternImage
-
fromCIColor
-
colorNamed
- Since:
- Available in iOS 11.0 and later.
-
fromResourceBundle
public static UIColor fromResourceBundle(String name, NSBundle bundle, UITraitCollection traitCollection)- Since:
- Available in iOS 11.0 and later.
-
init
- Since:
- Available in iOS 13.0 and later.
-
resolvedColorWithTraitCollection
- Since:
- Available in iOS 13.0 and later.
-
encode
-
init
-
createProviderDataObject
public static UIColor createProviderDataObject(NSData data, String typeIdentifier) throws NSErrorException- Throws:
NSErrorException
-
getItemProviderVisibility
- Specified by:
getItemProviderVisibilityin interfaceNSItemProviderWriting
-
loadData
- Specified by:
loadDatain interfaceNSItemProviderWriting
-
getItemProviderVisibility0
public static NSItemProviderRepresentationVisibility getItemProviderVisibility0(String typeIdentifier)
-