-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathFTColorPanel.h
More file actions
33 lines (26 loc) · 849 Bytes
/
FTColorPanel.h
File metadata and controls
33 lines (26 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#import <Cocoa/Cocoa.h>
#import "NSColorAdditions.h"
#define HEX_COLOR_MODE 0
#define HEX_WITHOUT_HASH_COLOR_MODE 1
#define RGB_COLOR_MODE 2
#define RGBA_COLOR_MODE 3
#define HSL_COLOR_MODE 4
#define HSLA_COLOR_MODE 5
#define OBJC_NSCOLOR_COLOR_MODE 6
#define SWIFT_NSCOLOR_COLOR_MODE 7
#define MOTION_NSCOLOR_COLOR_MODE 8
#define OBJC_UICOLOR_COLOR_MODE 9
#define SWIFT_UICOLOR_COLOR_MODE 10
#define MOTION_UICOLOR_COLOR_MODE 11
@interface FTColorPanel : NSColorPanel {
NSTextField *colorCodeField;
NSButton *colorSpaceButton;
int _colorMode;
}
-(FTColorPanel *)init;
-(int)colorMode;
-(void)setColorMode:(int)colorMode;
-(NSString *)representationStringOfCurrentColorMode:(BOOL)shortVersion;
-(NSString *)representationStringOfColorInMode:(int)colorMode shortVersion:(BOOL)shortVersion;
-(void)updateStringRepresentationOfColor;
@end