aboutsummaryrefslogtreecommitdiff
path: root/src-qt5
diff options
context:
space:
mode:
authorKen Moore <ken@ixsystems.com>2016-10-31 12:27:29 -0400
committerKen Moore <ken@ixsystems.com>2016-10-31 12:27:29 -0400
commit5467b6285f56707c2d3c3099a5de882d59e2b81c (patch)
tree5891016098506de562312f63961fd67c51dad40b /src-qt5
parentRe-work the main page of the lumina-config tool (diff)
parentAdd the beginnings of the new RandR xcb backend to Lumina (diff)
downloadlumina-5467b6285f56707c2d3c3099a5de882d59e2b81c.tar.gz
lumina-5467b6285f56707c2d3c3099a5de882d59e2b81c.tar.bz2
lumina-5467b6285f56707c2d3c3099a5de882d59e2b81c.zip
Merge branch 'master' of github.com:trueos/lumina
Diffstat (limited to 'src-qt5')
-rw-r--r--src-qt5/core/libLumina/LuminaRandR.cpp1
-rw-r--r--src-qt5/core/libLumina/LuminaRandR.h35
2 files changed, 36 insertions, 0 deletions
diff --git a/src-qt5/core/libLumina/LuminaRandR.cpp b/src-qt5/core/libLumina/LuminaRandR.cpp
new file mode 100644
index 00000000..eefc5aa8
--- /dev/null
+++ b/src-qt5/core/libLumina/LuminaRandR.cpp
@@ -0,0 +1 @@
+#include "LuminaRandR.h"
diff --git a/src-qt5/core/libLumina/LuminaRandR.h b/src-qt5/core/libLumina/LuminaRandR.h
new file mode 100644
index 00000000..3cdff651
--- /dev/null
+++ b/src-qt5/core/libLumina/LuminaRandR.h
@@ -0,0 +1,35 @@
+//===========================================
+// Lumina-DE source code
+// Copyright (c) 2016, Ken Moore
+// Available under the 3-clause BSD license
+// See the LICENSE file for full details
+//===========================================
+// This class governs all the xcb/randr interactions
+// and provides simpler Qt-based functions for use elsewhere
+//===========================================
+
+//Qt includes
+#include <QSize>
+
+#include "xcb/randr.h"
+
+class outputDevice{
+public:
+ QString id; //output ID
+ bool enabled;
+ //Monitor Geometry
+ QPoint geom; //geometry of monitor within session
+ //Monitor Resolution
+ QSize cRes; //current resolution of the monitor (could be different from geom.size() if panning is enabled)
+ QList<QSize> availRes; //available resolutions supported by the monitor
+ //Refresh Rate
+ int cHz; //current refresh rate
+ QList<int> availHz; //available refresh rates
+ //Expand this later to include:
+ // panning (current/possible)
+ // rotation (current/possible)
+
+ //FUNCTIONS
+
+ //Modification
+};
bgstack15