MeVisLab Toolbox Reference
macEventManager.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef MAC_EVENT_MANAGER_H
14 #define MAC_EVENT_MANAGER_H
15 
17 
18 #if defined(__APPLE__)
19 
21 
22 namespace macos {
23 
26  {
27  public:
28 
31 
33  enum {
34  KeyModifierNone = 0,
35  KeyModifierCommandKey = (1 << 0),
36  KeyModifierShiftKey = (1 << 1),
37  KeyModifierOptionKey = (1 << 2),
38  KeyModifierControlKey = (1 << 3),
39  KeyModifierFunctionKey = (1 << 4)
40  };
42  typedef unsigned int KeyModifiers;
43 
46 
47  };
48 
49 }
50 
51 #endif // __APPLE__
52 #endif // __macEventManager_H
Event Manager.
static KeyModifiers getCurrentKeyModifiers()
Returns the current hardware keyboard modifier state.
static bool isUserInterationEventInQueue()
Returns 'true' if user interaction event is in event queue (does not remove the event)
unsigned int KeyModifiers
Key modifiers storage type.
#define OSXSUPPORT_PUBLIC_API
Symbol visibility macros.
AppleScript support.