DisplayManagerX11.h 866 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef DISPLAYMANAGERX11_H_
  2. #define DISPLAYMANAGERX11_H_
  3. #include <qmetatype.h>
  4. #include <X11/extensions/Xrandr.h>
  5. // X11 headers are messing up things for us
  6. #undef CursorShape
  7. #undef Bool
  8. #undef Status
  9. #undef None
  10. #undef KeyPress
  11. #undef KeyRelease
  12. #undef FocusIn
  13. #undef FocusOut
  14. #undef FontChange
  15. #undef Expose
  16. #include "display/DisplayManager.h"
  17. class DisplayManagerX11 : public DisplayManager
  18. {
  19. Q_OBJECT
  20. private:
  21. Display* xdisplay;
  22. XRRScreenResources* resources;
  23. public:
  24. DisplayManagerX11(QObject* parent) : DisplayManager(parent), xdisplay(0), resources(0) {};
  25. virtual ~DisplayManagerX11();
  26. virtual bool initialize();
  27. virtual bool setDisplayMode(int display, int mode);
  28. virtual int getCurrentDisplayMode(int display);
  29. virtual int getMainDisplay();
  30. virtual int getDisplayFromPoint(int x, int y);
  31. };
  32. #endif /* DISPLAYMANAGERX11_H_ */