Logo ROOT  
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 }
CocoaConstants.h
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