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