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