Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
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 1 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

◆ colorWithOOColorDescription:

+ (NSColor *) colorWithOOColorDescription: (id) description

Definition at line 1 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()

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