Logo ROOT   6.12/07
Reference Guide
CocoaConstants.mm
Go to the documentation of this file.
1 #include "CocoaConstants.h"
2 
3 namespace ROOT {
4 namespace MacOSX {
5 namespace Details {
6 
7 #ifdef MAC_OS_X_VERSION_10_12
8 
9 const NSUInteger kEventMaskAny = NSEventMaskAny;
10 const NSUInteger kAlphaShiftKeyMask = NSEventModifierFlagCapsLock;
11 const NSUInteger kShiftKeyMask = NSEventModifierFlagShift;
12 const NSUInteger kControlKeyMask = NSEventModifierFlagControl;
13 const NSUInteger kAlternateKeyMask = NSEventModifierFlagOption;
14 const NSUInteger kCommandKeyMask = NSEventModifierFlagCommand;
15 const NSUInteger kDeviceIndependentModifierFlagsMask = NSEventModifierFlagDeviceIndependentFlagsMask;
16 
17 const NSEventType kKeyDown = NSEventTypeKeyDown;
18 const NSEventType kKeyUp = NSEventTypeKeyUp;
19 
20 const NSEventType kLeftMouseDown = NSEventTypeLeftMouseDown;
21 const NSEventType kRightMouseDown = NSEventTypeRightMouseDown;
22 
23 const NSEventType kApplicationDefined = NSEventTypeApplicationDefined;
24 
25 const NSUInteger kMiniaturizableWindowMask = NSWindowStyleMaskMiniaturizable;
26 const NSUInteger kResizableWindowMask = NSWindowStyleMaskResizable;
27 const NSUInteger kClosableWindowMask = NSWindowStyleMaskClosable;
28 const NSUInteger kTitledWindowMask = NSWindowStyleMaskTitled;
29 const NSUInteger kBorderlessWindowMask = NSWindowStyleMaskBorderless;
30 
31 #else
32 
33 const NSUInteger kEventMaskAny = NSAnyEventMask;
34 const NSUInteger kAlphaShiftKeyMask = NSAlphaShiftKeyMask;
35 const NSUInteger kShiftKeyMask = NSShiftKeyMask;
36 const NSUInteger kControlKeyMask = NSControlKeyMask;
37 const NSUInteger kAlternateKeyMask = NSAlternateKeyMask;
38 const NSUInteger kCommandKeyMask = NSCommandKeyMask;
39 const NSUInteger kDeviceIndependentModifierFlagsMask = NSDeviceIndependentModifierFlagsMask;
40 
41 const NSEventType kKeyDown = NSKeyDown;
42 const NSEventType kKeyUp = NSKeyUp;
43 
44 const NSEventType kLeftMouseDown = NSLeftMouseDown;
45 const NSEventType kRightMouseDown = NSRightMouseDown;
46 
47 const NSEventType kApplicationDefined = NSApplicationDefined;
48 
49 const NSUInteger kMiniaturizableWindowMask = NSMiniaturizableWindowMask;
50 const NSUInteger kResizableWindowMask = NSResizableWindowMask;
51 const NSUInteger kClosableWindowMask = NSClosableWindowMask;
52 const NSUInteger kTitledWindowMask = NSTitledWindowMask;
53 const NSUInteger kBorderlessWindowMask = NSBorderlessWindowMask;
54 
55 #endif // MAC_OS_X_VERSION_10_12
56 
57 }
58 }
59 }
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