-
Notifications
You must be signed in to change notification settings - Fork 36
/
CHSymbolButtonImage.h
61 lines (45 loc) · 1.67 KB
/
CHSymbolButtonImage.h
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// CHSymbolButtonImage.h
// Chocolat
//
// Created by Alex Gordon on 11/09/2009.
// Copyright 2009 Fileability. Written in 2010 by Fileability..
//
#import <Cocoa/Cocoa.h>
typedef enum _CHSymbolButtonImageType
{
CHSymbolButtonTypedef = 1<<1,
CHSymbolButtonStruct = 1<<2,
CHSymbolButtonUnion = 1<<3,
CHSymbolButtonEnum = 1<<4,
CHSymbolButtonCppClass = 1<<5,
CHSymbolButtonCppNamespace = 1<<6,
CHSymbolButtonObjcInterface = 1<<7,
CHSymbolButtonObjcImplementation = 1<<8,
CHSymbolButtonObjcClass = 1<<16,
CHSymbolButtonObjcProtocol = 1<<17,
CHSymbolButtonObjcCategory = 1<<18, //For example: ObjcCategory | ObjcInterface
CHSymbolButtonFunctionContainer = 1<<19,
CHSymbolButtonVariable = 1<<20,
CHSymbolButtonObjcMethod = 1<<21,
CHSymbolButtonObjcProperty = 1<<22,
CHSymbolButtonFunction = 1<<23,
CHSymbolButtonLocalScope = 1<<25,
CHSymbolButtonInstanceScope = 1<<26,
CHSymbolButtonStaticScope = 1<<27,
CHSymbolButtonGlobalScope = 1<<28,
CHSymbolButtonMacro = 1<<30,
CHSymbolButtonDefine = 1<<31,
CHSymbolButtonDontDrawBorder = 1<<9,
CHSymbolButtonObjcBindingsListing = 1<<10,
CHSymbolButtonNotification = 1<<11,
} CHSymbolButtonImageType;
typedef uint64_t CHSymbolButtonImageMask;
@interface CHSymbolButtonImage : NSObject {
}
+ (NSArray *)symbolImageWithTypeString:(NSString *)typeString drawBorder:(BOOL)drawBorder;
+ (NSArray *)symbolImageWithMask:(CHSymbolButtonImageMask)mask;
+ (NSImage *)symbolImageWithString:(NSString *)str offset:(CGFloat)offset bold:(BOOL)isBold isWhite:(BOOL)isWhite drawBorder:(BOOL)drawBorder;
+ (NSColor *)rotateColor:(NSColor *)c byOffset:(CGFloat)offset;
+ (NSColor *)rotateColor:(NSColor *)c toOffset:(CGFloat)offset;
@end