UIColor class

UIColor

Available extensions

Constructors

UIColor.new()
Returns a new instance of UIColor constructed with the default new method.
factory
UIColor.castFrom(ObjCObjectBase other)
Constructs a UIColor that points to the same underlying object as other.
UIColor.castFromPointer(Pointer<ObjCObject> other, {bool retain = false, bool release = false})
Constructs a UIColor that wraps the given raw object pointer.

Properties

CGColor$1 Pointer<CGColor>

Available on UIColor, provided by the UIColor$Methods extension

CGColor
no setter
CIColor$1 CIColor

Available on UIColor, provided by the UIColor$Methods extension

CIColor
no setter
hashCode int
The hash code for this object.
no setterinherited
ref → ObjCObjectRef
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
writableTypeIdentifiersForItemProvider$1 → NSArray

Available on UIColor, provided by the UINSItemProvider extension

writableTypeIdentifiersForItemProvider
no setter

Methods

colorWithAlphaComponent(double alpha) UIColor

Available on UIColor, provided by the UIColor$Methods extension

colorWithAlphaComponent:
encodeWithCoder(NSCoder coder) → void

Available on UIColor, provided by the UIColor$Methods extension

encodeWithCoder:
getHue(Pointer<Double> hue, {required Pointer<Double> saturation, required Pointer<Double> brightness, required Pointer<Double> alpha}) bool

Available on UIColor, provided by the UIColor$Methods extension

getHue:saturation:brightness:alpha:
getRed(Pointer<Double> red, {required Pointer<Double> green, required Pointer<Double> blue, required Pointer<Double> alpha}) bool

Available on UIColor, provided by the UIColor$Methods extension

getRed:green:blue:alpha:
getWhite(Pointer<Double> white, {required Pointer<Double> alpha}) bool

Available on UIColor, provided by the UIColor$Methods extension

getWhite:alpha:
init() UIColor

Available on UIColor, provided by the UIColor$Methods extension

init
initWithCGColor(Pointer<CGColor> cgColor) UIColor

Available on UIColor, provided by the UIColor$Methods extension

initWithCGColor:
initWithCIColor(CIColor ciColor) UIColor

Available on UIColor, provided by the UIColor$Methods extension

initWithCIColor:
initWithCoder(NSCoder coder) UIColor?

Available on UIColor, provided by the UIColor$Methods extension

initWithCoder:
initWithDisplayP3Red(double displayP3Red, {required double green, required double blue, required double alpha}) UIColor

Available on UIColor, provided by the UIColor$Methods extension

initWithDisplayP3Red:green:blue:alpha:
initWithDynamicProvider(ObjCBlock<UIColor Function(UITraitCollection)> dynamicProvider) UIColor

Available on UIColor, provided by the DynamicColors extension

initWithDynamicProvider:
initWithHue(double hue, {required double saturation, required double brightness, required double alpha}) UIColor

Available on UIColor, provided by the UIColor$Methods extension

initWithHue:saturation:brightness:alpha:
initWithPatternImage(UIImage image) UIColor

Available on UIColor, provided by the UIColor$Methods extension

initWithPatternImage:
initWithRed(double red, {required double green, required double blue, required double alpha}) UIColor

Available on UIColor, provided by the UIColor$Methods extension

initWithRed:green:blue:alpha:
initWithWhite(double white, {required double alpha}) UIColor

Available on UIColor, provided by the UIColor$Methods extension

initWithWhite:alpha:
itemProviderVisibilityForRepresentationWithTypeIdentifier$1(NSString typeIdentifier) → NSItemProviderRepresentationVisibility

Available on UIColor, provided by the UINSItemProvider extension

itemProviderVisibilityForRepresentationWithTypeIdentifier:
loadDataWithTypeIdentifier(NSString typeIdentifier, {required ObjCBlock<Void Function(NSData?, NSError?)> forItemProviderCompletionHandler}) → NSProgress?

Available on UIColor, provided by the UINSItemProvider extension

loadDataWithTypeIdentifier:forItemProviderCompletionHandler:
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolvedColorWithTraitCollection(UITraitCollection traitCollection) UIColor

Available on UIColor, provided by the DynamicColors extension

resolvedColorWithTraitCollection:
set$() → void

Available on UIColor, provided by the UIColor$Methods extension

set
setFill() → void

Available on UIColor, provided by the UIColor$Methods extension

setFill
setStroke() → void

Available on UIColor, provided by the UIColor$Methods extension

setStroke
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

alloc() UIColor
alloc
allocWithZone(Pointer<NSZone> zone) UIColor
allocWithZone:
colorWithCGColor(Pointer<CGColor> cgColor) UIColor
colorWithCGColor:
colorWithCIColor(CIColor ciColor) UIColor
colorWithCIColor:
colorWithDisplayP3Red(double displayP3Red, {required double green, required double blue, required double alpha}) UIColor
colorWithDisplayP3Red:green:blue:alpha:
colorWithHue(double hue, {required double saturation, required double brightness, required double alpha}) UIColor
colorWithHue:saturation:brightness:alpha:
colorWithPatternImage(UIImage image) UIColor
colorWithPatternImage:
colorWithRed(double red, {required double green, required double blue, required double alpha}) UIColor
colorWithRed:green:blue:alpha:
colorWithWhite(double white, {required double alpha}) UIColor
colorWithWhite:alpha:
getBlackColor() UIColor
blackColor
getBlueColor() UIColor
blueColor
getBrownColor() UIColor
brownColor
getClearColor() UIColor
clearColor
getCyanColor() UIColor
cyanColor
getDarkGrayColor() UIColor
darkGrayColor
getGrayColor() UIColor
grayColor
getGreenColor() UIColor
greenColor
getLightGrayColor() UIColor
lightGrayColor
getMagentaColor() UIColor
magentaColor
getOrangeColor() UIColor
orangeColor
getPurpleColor() UIColor
purpleColor
getRedColor() UIColor
redColor
getSupportsSecureCoding() bool
supportsSecureCoding
getWhiteColor() UIColor
whiteColor
getYellowColor() UIColor
yellowColor
isInstance(ObjCObjectBase obj) bool
Returns whether obj is an instance of UIColor.
new$() UIColor
new
objectWithItemProviderData(NSData data, {required NSString typeIdentifier, required Pointer<Pointer<ObjCObject>> error}) UIColor?
objectWithItemProviderData:typeIdentifier:error: