diff options
author | Ken Moore <ken@ixsystems.com> | 2017-06-21 15:13:22 -0400 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-06-21 15:13:22 -0400 |
commit | 060ae4166fd5b071e4ff787fbba0fd76f867a4f4 (patch) | |
tree | 278ac632de993f787a1322dc5ae2a7822258147b /src-qt5/core/libLumina/LuminaRandR.h | |
parent | Get a lot more of the LuminaRandR class functional. The "set" routines are no... (diff) | |
download | lumina-060ae4166fd5b071e4ff787fbba0fd76f867a4f4.tar.gz lumina-060ae4166fd5b071e4ff787fbba0fd76f867a4f4.tar.bz2 lumina-060ae4166fd5b071e4ff787fbba0fd76f867a4f4.zip |
Oops - forgot to add the changes to the LuminaRandR files.
Diffstat (limited to 'src-qt5/core/libLumina/LuminaRandR.h')
-rw-r--r-- | src-qt5/core/libLumina/LuminaRandR.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LuminaRandR.h b/src-qt5/core/libLumina/LuminaRandR.h index a061a261..d3e95c54 100644 --- a/src-qt5/core/libLumina/LuminaRandR.h +++ b/src-qt5/core/libLumina/LuminaRandR.h @@ -16,6 +16,9 @@ #include <QPoint> #include <QRect> #include <QList> +#include <QObject> +#include <QDebug> +#include <QX11Info> // XCB #include "xcb/randr.h" @@ -32,6 +35,7 @@ struct p_objects{ QSize physicalSizeMM; QString name; QList<xcb_randr_output_t> outputs; + QList<xcb_randr_mode_t> modes; /*p_objects(){ // Set the defaults for non-default-constructed variables @@ -85,11 +89,21 @@ public: p_objects p_obj; }; -class OutputDeviceList : public QList<OutputDevice>{ +class OutputDeviceList{ +private: + QList<OutputDevice> out_devs; + public: OutputDeviceList(); ~OutputDeviceList(); + int length(){ return out_devs.length(); } + + OutputDevice* at(int i){ + if(i<out_devs.length()){ return &out_devs[i]; } + return 0; + } + //Simplification functions for dealing with multiple monitors void setPrimaryMonitor(QString id); void disableMonitor(QString id); |