Logo ROOT  
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
ROOT::MacOSX::Details::kRightMouseDown
const NSEventType kRightMouseDown
Definition: CocoaConstants.mm:45
ROOT::MacOSX::Details::kBorderlessWindowMask
const NSUInteger kBorderlessWindowMask
Definition: CocoaConstants.mm:53
ROOT::MacOSX::Details::kEventMaskAny
const NSUInteger kEventMaskAny
Definition: TMacOSXSystem.mm:35
ROOT::MacOSX::Details::kControlKeyMask
const NSUInteger kControlKeyMask
Definition: CocoaConstants.mm:36
ROOT::MacOSX::Details::kAlphaShiftKeyMask
const NSUInteger kAlphaShiftKeyMask
Definition: CocoaConstants.mm:34
ROOT::MacOSX::Details::kKeyDown
const NSEventType kKeyDown
Definition: CocoaConstants.mm:41
ROOT::MacOSX::Details
Definition: TMacOSXSystem.h:42
ROOT::MacOSX::Details::kClosableWindowMask
const NSUInteger kClosableWindowMask
Definition: CocoaConstants.mm:51
ROOT::MacOSX::Details::kKeyUp
const NSEventType kKeyUp
Definition: CocoaConstants.mm:42
ROOT::MacOSX::Details::kDeviceIndependentModifierFlagsMask
const NSUInteger kDeviceIndependentModifierFlagsMask
Definition: CocoaConstants.mm:39
ROOT::MacOSX::Details::kMiniaturizableWindowMask
const NSUInteger kMiniaturizableWindowMask
Definition: CocoaConstants.mm:49
ROOT::MacOSX::Details::kAlternateKeyMask
const NSUInteger kAlternateKeyMask
Definition: CocoaConstants.mm:37
ROOT::MacOSX::Details::kResizableWindowMask
const NSUInteger kResizableWindowMask
Definition: CocoaConstants.mm:50
ROOT::MacOSX::Details::kTitledWindowMask
const NSUInteger kTitledWindowMask
Definition: CocoaConstants.mm:52
ROOT::MacOSX::Details::kApplicationDefined
const NSEventType kApplicationDefined
Definition: TMacOSXSystem.mm:36
ROOT::MacOSX::Details::kShiftKeyMask
const NSUInteger kShiftKeyMask
Definition: CocoaConstants.mm:35
ROOT::MacOSX::Details::kLeftMouseDown
const NSEventType kLeftMouseDown
Definition: CocoaConstants.mm:44
ROOT
VSD Structures.
Definition: StringConv.hxx:21
ROOT::MacOSX::Details::kCommandKeyMask
const NSUInteger kCommandKeyMask
Definition: CocoaConstants.mm:38