Oolite 1.91.0.7668-250429-8542c40
All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Modules Pages
NSColor(OOColorConversion) Category Reference

#include <OODebugUtilities.h>

Instance Methods

(OOColor *) - asOOColor
 

Class Methods

(NSColor *) + colorWithOOColorDescription:
 

Detailed Description

Definition at line 41 of file OODebugUtilities.h.

Method Documentation

◆ asOOColor

- (OOColor *) asOOColor

Definition at line 52 of file OODebugUtilities.m.

53{
54 CGFloat r, g, b, a;
55 [[self colorUsingColorSpaceName:NSCalibratedRGBColorSpace] getRed:&r green:&g blue:&b alpha:&a];
56 return [OOColor colorWithRed:r green:g blue:b alpha:a];
57}
OOColor * colorWithRed:green:blue:alpha:(float red,[green] float green,[blue] float blue,[alpha] float alpha)
Definition OOColor.m:95

References asOOColor, and OOColor::colorWithRed:green:blue:alpha:.

Referenced by asOOColor.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ colorWithOOColorDescription:

+ (NSColor *) colorWithOOColorDescription: (id) description

Definition at line 46 of file OODebugUtilities.m.

46 :(id)description
47{
48 return [[OOColor colorWithDescription:description] asNSColor];
49}
OOColor * colorWithDescription:(id description)
Definition OOColor.m:127
NSColor * asNSColor()

References OOColor::asNSColor, and OOColor::colorWithDescription:.

+ Here is the call graph for this function:

The documentation for this category was generated from the following files: