23OF_ASSUME_NONNULL_BEGIN
31#ifdef OF_HAVE_CLASS_PROPERTIES
34@property (
class, readonly, nonatomic)
OFColor *
gray;
36 OF_DEPRECATED(ObjFW, 1, 1,
"Use +[gray] instead");
39@property (
class, readonly, nonatomic)
OFColor *
red;
43@property (
class, readonly, nonatomic)
OFColor *
lime;
46@property (
class, readonly, nonatomic)
OFColor *
navy;
47@property (
class, readonly, nonatomic)
OFColor *
blue;
48@property (
class, readonly, nonatomic)
OFColor *
teal;
49@property (
class, readonly, nonatomic)
OFColor *
aqua;
70+ (instancetype)colorWithRed: (float)
red
86+ (instancetype)colorWithRed: (float)
red
258- (instancetype)initWithRed: (
float)red
275- (instancetype)initWithRed: (
float)red
289- (void)getRed: (
float *)red
290 green: (
float *)green
292 alpha: (nullable
float *)alpha;
A class representing a color space.
Definition OFColorSpace.h:51
A class for storing a color.
Definition OFColor.h:31
OFColor * fuchsia()
Returns the HTML color fuchsia.
OFColor * red()
Returns the HTML color red.
OFColor * lime()
Returns the HTML color lime.
OFColor * blue()
Returns the HTML color blue.
OFColor * olive()
Returns the HTML color olive.
OFColor * aqua()
Returns the HTML color aqua.
OFColor * silver()
Returns the HTML color silver.
OFColor * navy()
Returns the HTML color navy.
OFColor * purple()
Returns the HTML color purple.
OFColor * grey()
Returns the HTML color gray.
Definition OFColor.m:141
OFColor * white()
Returns the HTML color white.
OFColor * gray()
Returns the HTML color gray.
OFColor * teal()
Returns the HTML color teal.
OFColor * green()
Returns the HTML color green.
OFColor * black()
Returns the HTML color black.
OFColor * yellow()
Returns the HTML color yellow.
OFColor * maroon()
Returns the HTML color maroon.
OFColorSpace * colorSpace
The color space in which the color is.
Definition OFColor.m:277
The root class for all other classes inside ObjFW.
Definition OFObject.h:956
instancetype retain()
Increases the retain count.