// // DisplayManagerOSX.h // konvergo // // Created by Lionel CHAZALLON on 28/09/2014. // // #ifndef _DISPLAYMANAGEROSX_H_ #define _DISPLAYMANAGEROSX_H_ #include "ApplicationServices/ApplicationServices.h" #include #include #include "display/DisplayManager.h" #define MAX_DISPLAYS 32 typedef std::map OSXDisplayModeMap; class DisplayManagerOSX : public DisplayManager { Q_OBJECT private: // OSX Display/ VideoMode handling structs uint32_t m_osxnumDisplays; CGDirectDisplayID m_osxDisplays[MAX_DISPLAYS]; OSXDisplayModeMap m_osxDisplayModes; public: explicit DisplayManagerOSX(QObject* parent) : DisplayManager(parent) {}; ~DisplayManagerOSX() override; bool initialize() override; bool setDisplayMode(int display, int mode) override; int getCurrentDisplayMode(int display) override; int getMainDisplay() override; int getDisplayFromPoint(int x, int y) override; }; #endif /* _DISPLAYMANAGEROSX_H_ */