summaryrefslogtreecommitdiffstats
path: root/src/output.h
diff options
context:
space:
mode:
authorManuel Schneider2013-11-21 15:38:19 +0100
committerManuel Schneider2013-11-21 15:38:19 +0100
commit21aa80032f685b3ded10fe293ca083d2f46ae18c (patch)
tree5f43f8791996dc445cedf51e4bcbe913fa908b12 /src/output.h
parent[Incomplete] Commit for EDID testsystem (diff)
downloadbeamergui-21aa80032f685b3ded10fe293ca083d2f46ae18c.tar.gz
beamergui-21aa80032f685b3ded10fe293ca083d2f46ae18c.tar.xz
beamergui-21aa80032f685b3ded10fe293ca083d2f46ae18c.zip
alpha
Diffstat (limited to 'src/output.h')
-rw-r--r--src/output.h47
1 files changed, 0 insertions, 47 deletions
diff --git a/src/output.h b/src/output.h
deleted file mode 100644
index 553444d..0000000
--- a/src/output.h
+++ /dev/null
@@ -1,47 +0,0 @@
-#ifndef OUTPUT_H
-#define OUTPUT_H
-
-#include <QDebug>
-#include <QSet>
-
-#include <X11/Xlib.h>
-#include <X11/extensions/Xrandr.h>
-
-typedef struct _Resolution{
- unsigned int width;
- unsigned int height;
-}Resolution;
-
-inline bool operator==(const Resolution& lhs, const Resolution& rhs) {
- return lhs.width == rhs.width && lhs.height == rhs.height;
-}
-
-inline uint qHash(const Resolution &key)
-{
- return qHash(key.width ^ key.height);
-}
-
-class Output
-{
-public:
-
-
- Output(Display *dpy, XRRScreenResources *resources, RROutput output);
-
- bool hasEDID() const;
- bool isProjector() const;
- Resolution getCurrentMode() const;
- Resolution getPreferredMode() const;
- QSet<Resolution> getSupportedModes() const;
- Resolution addMode(Resolution) const;
-
-private:
-
- Display *dpy;
- XRRScreenResources *resources;
- RROutput ID;
-
- Resolution getResolution(RRMode) const;
-};
-
-#endif // OUTPUT_H