Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/virtual/screens_virtual.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_VIRTUAL_H | 20 | #ifndef KWIN_SCREENS_VIRTUAL_H | ||
21 | #define KWIN_SCREENS_VIRTUAL_H | 21 | #define KWIN_SCREENS_VIRTUAL_H | ||
22 | #include "screens.h" | 22 | #include "outputscreens.h" | ||
23 | #include <QVector> | 23 | #include <QVector> | ||
24 | 24 | | |||
25 | namespace KWin | 25 | namespace KWin | ||
26 | { | 26 | { | ||
27 | class VirtualBackend; | 27 | class VirtualBackend; | ||
28 | 28 | | |||
29 | class VirtualScreens : public Screens | 29 | class VirtualScreens : public OutputScreens | ||
30 | { | 30 | { | ||
31 | Q_OBJECT | 31 | Q_OBJECT | ||
32 | public: | 32 | public: | ||
33 | VirtualScreens(VirtualBackend *backend, QObject *parent = nullptr); | 33 | VirtualScreens(VirtualBackend *backend, QObject *parent = nullptr); | ||
34 | virtual ~VirtualScreens(); | 34 | virtual ~VirtualScreens(); | ||
35 | void init() override; | 35 | void init() override; | ||
36 | QRect geometry(int screen) const override; | | |||
37 | int number(const QPoint &pos) const override; | | |||
38 | QSize size(int screen) const override; | | |||
39 | void updateCount() override; | | |||
40 | 36 | | |||
41 | private: | 37 | private: | ||
42 | void createOutputs(); | 38 | void createOutputs(); | ||
43 | VirtualBackend *m_backend; | 39 | VirtualBackend *m_backend; | ||
44 | }; | 40 | }; | ||
45 | 41 | | |||
46 | } | 42 | } | ||
47 | 43 | | |||
48 | #endif | 44 | #endif | ||
49 | 45 | |