Logo ROOT   6.14/05
Reference Guide
CocoaConstants.h
Go to the documentation of this file.
1 #ifndef ROOT_CocoaConstants
2 #define ROOT_CocoaConstants
3 
4 #include <Cocoa/Cocoa.h>
5 
6 /*
7 While releasing a new SDK version Apple sometimes deprecates some constants,
8 creating a lot of compilation noise as a result. We can not just use the recommended
9 new values - we support the previous SDK versions where these constants do not exist yet.
10 We define our own constants that will resolve at compile time to either new or
11 old ones. All similar constants should be added here.
12 Resulting kNames are quite generic and can clash with ROOT's own constants
13 (for example, kShiftKeyMask is very similar to ROOTS kKeyShiftMask),
14 but they are protected by the namepace scopes.
15 */
16 
17 namespace ROOT {
18 namespace MacOSX {
19 namespace Details {
20 
21 // Key modifiers
22 extern const NSUInteger kEventMaskAny;
23 extern const NSUInteger kAlphaShiftKeyMask;
24 extern const NSUInteger kShiftKeyMask;
25 extern const NSUInteger kControlKeyMask;
26 extern const NSUInteger kAlternateKeyMask;
27 extern const NSUInteger kCommandKeyMask;
28 extern const NSUInteger kDeviceIndependentModifierFlagsMask;
29 
30 // Application event types
31 extern const NSEventType kApplicationDefined;
32 
33 // Key event types
34 extern const NSEventType kKeyDown;
35 extern const NSEventType kKeyUp;
36 
37 // Mouse events
38 extern const NSEventType kLeftMouseDown;
39 extern const NSEventType kRightMouseDown;
40 
41 // Windows masks
42 extern const NSUInteger kMiniaturizableWindowMask;
43 extern const NSUInteger kResizableWindowMask;
44 extern const NSUInteger kClosableWindowMask;
45 extern const NSUInteger kTitledWindowMask;
46 extern const NSUInteger kBorderlessWindowMask;
47 
48 
49 }
50 }
51 }
52 
53 #endif
Namespace for new ROOT classes and functions.
Definition: StringConv.hxx:21
const NSUInteger kDeviceIndependentModifierFlagsMask
const NSUInteger kAlternateKeyMask
const NSUInteger kTitledWindowMask
const NSUInteger kResizableWindowMask
const NSEventType kKeyDown
const NSUInteger kClosableWindowMask
const NSUInteger kMiniaturizableWindowMask
const NSEventType kKeyUp
const NSEventType kLeftMouseDown
const NSUInteger kCommandKeyMask
const NSEventType kApplicationDefined
const NSUInteger kShiftKeyMask
const NSUInteger kEventMaskAny
const NSEventType kRightMouseDown
const NSUInteger kControlKeyMask
const NSUInteger kBorderlessWindowMask
const NSUInteger kAlphaShiftKeyMask