Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/drm/screens_drm.h
- This file was copied to outputscreens.h.
Show All 13 Lines | |||||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #ifndef KWIN_SCREENS_DRM_H | 20 | #ifndef KWIN_SCREENS_DRM_H | ||
21 | #define KWIN_SCREENS_DRM_H | 21 | #define KWIN_SCREENS_DRM_H | ||
22 | #include "screens.h" | 22 | #include "outputscreens.h" | ||
23 | 23 | | |||
24 | namespace KWin | 24 | namespace KWin | ||
25 | { | 25 | { | ||
26 | class DrmBackend; | 26 | class DrmBackend; | ||
27 | 27 | | |||
28 | class DrmScreens : public Screens | 28 | class DrmScreens : public OutputScreens | ||
29 | { | 29 | { | ||
30 | Q_OBJECT | 30 | Q_OBJECT | ||
31 | public: | 31 | public: | ||
32 | DrmScreens(DrmBackend *backend, QObject *parent = nullptr); | 32 | DrmScreens(DrmBackend *backend, QObject *parent = nullptr); | ||
33 | virtual ~DrmScreens(); | 33 | virtual ~DrmScreens(); | ||
34 | void init() override; | | |||
35 | QRect geometry(int screen) const override; | | |||
36 | int number(const QPoint &pos) const override; | | |||
37 | qreal scale(int screen) const override; | | |||
38 | QSize size(int screen) const override; | | |||
39 | void updateCount() override; | | |||
40 | QString name(int screen) const override; | | |||
41 | float refreshRate(int screen) const override; | | |||
42 | 34 | | |||
43 | QSizeF physicalSize(int screen) const override; | 35 | float refreshRate(int screen) const override; | ||
44 | bool isInternal(int screen) const override; | | |||
45 | bool supportsTransformations(int screen) const override; | 36 | bool supportsTransformations(int screen) const override; | ||
46 | Qt::ScreenOrientation orientation(int screen) const override; | | |||
47 | 37 | | |||
48 | private: | | |||
49 | DrmBackend *m_backend; | 38 | DrmBackend *m_backend; | ||
50 | }; | 39 | }; | ||
51 | 40 | | |||
52 | } | 41 | } | ||
53 | 42 | | |||
54 | #endif | 43 | #endif |