Changeset View
Changeset View
Standalone View
Standalone View
outputscreens.h
Show All 19 Lines | |||||
20 | #ifndef KWIN_OUTPUTSCREENS_H | 20 | #ifndef KWIN_OUTPUTSCREENS_H | ||
21 | #define KWIN_OUTPUTSCREENS_H | 21 | #define KWIN_OUTPUTSCREENS_H | ||
22 | 22 | | |||
23 | #include "screens.h" | 23 | #include "screens.h" | ||
24 | 24 | | |||
25 | namespace KWin | 25 | namespace KWin | ||
26 | { | 26 | { | ||
27 | 27 | | |||
28 | class AbstractOutput; | ||||
29 | | ||||
28 | /** | 30 | /** | ||
29 | * @brief Implementation for backends with Outputs | 31 | * @brief Implementation for backends with Outputs | ||
30 | **/ | 32 | **/ | ||
31 | class KWIN_EXPORT OutputScreens : public Screens | 33 | class KWIN_EXPORT OutputScreens : public Screens | ||
32 | { | 34 | { | ||
33 | Q_OBJECT | 35 | Q_OBJECT | ||
34 | public: | 36 | public: | ||
35 | OutputScreens(Platform *platform, QObject *parent = nullptr); | 37 | OutputScreens(Platform *platform, QObject *parent = nullptr); | ||
36 | virtual ~OutputScreens(); | 38 | virtual ~OutputScreens(); | ||
37 | 39 | | |||
38 | void init() override; | 40 | void init() override; | ||
39 | QString name(int screen) const override; | 41 | QString name(int screen) const override; | ||
40 | bool isInternal(int screen) const; | 42 | bool isInternal(int screen) const; | ||
41 | QSizeF physicalSize(int screen) const; | 43 | QSizeF physicalSize(int screen) const; | ||
42 | QRect geometry(int screen) const override; | 44 | QRect geometry(int screen) const override; | ||
43 | QSize size(int screen) const override; | 45 | QSize size(int screen) const override; | ||
44 | qreal scale(int screen) const override; | 46 | qreal scale(int screen) const override; | ||
45 | float refreshRate(int screen) const override; | 47 | float refreshRate(int screen) const override; | ||
46 | Qt::ScreenOrientation orientation(int screen) const override; | 48 | Qt::ScreenOrientation orientation(int screen) const override; | ||
47 | void updateCount() override; | 49 | void updateCount() override; | ||
48 | int number(const QPoint &pos) const override; | 50 | int number(const QPoint &pos) const override; | ||
49 | 51 | | |||
50 | protected: | 52 | protected: | ||
51 | Platform *m_platform; | 53 | Platform *m_platform; | ||
54 | | ||||
55 | private: | ||||
56 | AbstractOutput *findOutput(int screen) const; | ||||
52 | }; | 57 | }; | ||
53 | 58 | | |||
54 | } | 59 | } | ||
55 | 60 | | |||
56 | #endif // KWIN_OUTPUTSCREENS_H | 61 | #endif // KWIN_OUTPUTSCREENS_H |