23 OF_ASSUME_NONNULL_BEGIN
31 #ifdef OF_HAVE_CLASS_PROPERTIES 34 @property (
class, readonly, nonatomic)
OFColor *
gray;
35 @property (
class, readonly, nonatomic)
OFColor *
grey 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;
303 OF_ASSUME_NONNULL_END
OFColor * gray()
Returns the HTML color gray.
OFColor * lime()
Returns the HTML color lime.
OFColor * grey()
Returns the HTML color gray.
Definition: OFColor.m:141
A class for storing a color.
Definition: OFColor.h:30
The root class for all other classes inside ObjFW.
Definition: OFObject.h:954
OFColor * silver()
Returns the HTML color silver.
OFColor * maroon()
Returns the HTML color maroon.
instancetype retain()
Increases the retain count.
OFColorSpace * colorSpace
The color space in which the color is.
Definition: OFColor.h:58
OFColor * teal()
Returns the HTML color teal.
OFColor * black()
Returns the HTML color black.
OFColor * olive()
Returns the HTML color olive.
OFColor * white()
Returns the HTML color white.
OFColor * navy()
Returns the HTML color navy.
OFColor * red()
Returns the HTML color red.
OFColor * yellow()
Returns the HTML color yellow.
OFColor * aqua()
Returns the HTML color aqua.
OFColor * green()
Returns the HTML color green.
A class representing a color space.
Definition: OFColorSpace.h:50
OFColor * purple()
Returns the HTML color purple.
OFColor * blue()
Returns the HTML color blue.
OFColor * fuchsia()
Returns the HTML color fuchsia.