File indexing completed on 2024-06-09 04:43:36

0001 #pragma once
0002 
0003 #include <QObject>
0004 #include <QString>
0005 #include "modules/screenmanager.h"
0006 
0007 #include <QObject>
0008 
0009 class Screen : public QObject
0010 {
0011     Q_OBJECT
0012     Q_PROPERTY(double scaleFactor READ scaleFactor WRITE setScaleFactor NOTIFY scaleFactorChanged)
0013     Q_PROPERTY(uint orientation READ orientation WRITE setOrientation NOTIFY orientationChanged)
0014 
0015 public:
0016     explicit Screen(QObject *parent = nullptr);
0017 
0018     double scaleFactor() const;
0019     void setScaleFactor(double scaleFactor);
0020 
0021     uint orientation() const;
0022     void setOrientation(uint orientation);
0023 
0024 Q_SIGNALS:
0025     void scaleFactorChanged(double scaleFactor);
0026 
0027     void orientationChanged(uint orientation);
0028 
0029 private:
0030     double m_scaleFactor = MauiMan::ScreenManager::DefaultValues::scaleFactor;
0031     uint m_orientation = MauiMan::ScreenManager::DefaultValues::orientation;
0032 };
0033