forked from aryamccarthy/RDM
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathResMenuItem.h
More file actions
46 lines (27 loc) · 783 Bytes
/
Copy pathResMenuItem.h
File metadata and controls
46 lines (27 loc) · 783 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
34
35
36
37
38
39
40
41
42
43
44
45
46
static inline CFDictionaryRef CGDisplayModeGetDictionary(CGDisplayModeRef mode) {
CFDictionaryRef infoDict = ((CFDictionaryRef *)mode)[2]; // DIRTY, dirty, smelly, no good very bad hack
return infoDict;
}
@interface ResMenuItem : NSMenuItem
{
CGDirectDisplayID _display;
int modeNum;
//CGDisplayModeRef _mode;
float refreshRate;
float scale;
int colorDepth;
int width;
int height;
}
- (id) initWithDisplay: (CGDirectDisplayID) display andMode: (modes_D4*) mode;
- (CGDirectDisplayID) display;
- (void) setTextFormat: (int) textFormat;
//- (CGDisplayModeRef) mode;
- (int) modeNum;
- (int) colorDepth;
- (int) width;
- (int) height;
- (float) refreshRate;
- (float) scale;
- (NSComparisonResult) compareResMenuItem: (ResMenuItem*) otherItem;
@end