File: NSColorExtensions.h

package info (click to toggle)
timemon.app 4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 580 kB
  • sloc: objc: 698; ansic: 161; makefile: 23; sh: 9
file content (20 lines) | stat: -rw-r--r-- 451 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#import <AppKit/NSColor.h>

#if !defined (GNUSTEP) &&  (MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_4)
#if !defined(NSUInteger)
#define NSUInteger unsigned
#endif
#if !defined(NSInteger)
#define NSInteger int
#endif
#if !defined(CGFloat)
#define CGFloat float
#endif
#endif

@class NSString;

@interface NSColor (GetColorsFromString)
+ (NSColor *)colorFromStringRepresentation:(NSString *)colorString;
- (NSString *)stringRepresentation;
@end