MeVisLabToolboxReference
MeVis/Foundation/Sources/OSXSupport/macEventManager.h
Go to the documentation of this file.
00001 // **InsertLicense** code author="Felix Ritter" version="1.0"
00002 
00006 
00007 #ifndef __macEventManager_H
00008 #define __macEventManager_H
00009 #if defined(__APPLE__)
00010 
00011 namespace macx {
00012   
00014   class EventManager
00015   {
00016   public:
00017     
00019     static bool isUserInterationEventInQueue();
00020 
00022     enum {
00023       KeyModifierNone        = 0,
00024       KeyModifierCommandKey  = (1 << 0),
00025       KeyModifierShiftKey    = (1 << 1),
00026       KeyModifierOptionKey   = (1 << 2),
00027       KeyModifierControlKey  = (1 << 3),
00028       KeyModifierFunctionKey = (1 << 4)
00029     };
00031     typedef unsigned int KeyModifiers;
00032     
00034     static KeyModifiers getCurrentKeyModifiers();
00035     
00036   };
00037   
00038 }
00039 
00040 #endif  // __APPLE__
00041 #endif  // __macEventManager_H