Changeset View
Changeset View
Standalone View
Standalone View
backends/kwayland/waylandscreen.h
Show All 9 Lines | |||||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * | 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * | ||
12 | * Lesser General Public License for more details. * | 12 | * Lesser General Public License for more details. * | ||
13 | * * | 13 | * * | ||
14 | * You should have received a copy of the GNU Lesser General Public * | 14 | * You should have received a copy of the GNU Lesser General Public * | ||
15 | * License along with this library; if not, write to the Free Software * | 15 | * License along with this library; if not, write to the Free Software * | ||
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * | 16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * | ||
17 | *************************************************************************************/ | 17 | *************************************************************************************/ | ||
18 | 18 | #pragma once | |||
19 | #ifndef KSCREEN_WAYLAND_SCREEN_H | | |||
20 | #define KSCREEN_WAYLAND_SCREEN_H | | |||
21 | 19 | | |||
22 | #include "abstractbackend.h" | 20 | #include "abstractbackend.h" | ||
23 | #include "config.h" | 21 | #include "config.h" | ||
24 | #include "screen.h" | 22 | #include "screen.h" | ||
25 | 23 | | |||
26 | #include <QObject> | 24 | #include <QObject> | ||
27 | #include <QSize> | 25 | #include <QSize> | ||
28 | 26 | | |||
29 | namespace KScreen | 27 | namespace KScreen | ||
30 | { | 28 | { | ||
31 | class WaylandConfig; | 29 | class WaylandConfig; | ||
32 | class WaylandOutput; | 30 | class WaylandOutput; | ||
33 | 31 | | |||
34 | class WaylandScreen : public QObject | 32 | class WaylandScreen : public QObject | ||
35 | { | 33 | { | ||
36 | Q_OBJECT | 34 | Q_OBJECT | ||
37 | 35 | | |||
38 | public: | 36 | public: | ||
39 | explicit WaylandScreen(WaylandConfig *config); | 37 | explicit WaylandScreen(WaylandConfig *config); | ||
40 | ~WaylandScreen() override; | 38 | ~WaylandScreen() override = default; | ||
41 | 39 | | |||
42 | KScreen::ScreenPtr toKScreenScreen(KScreen::ConfigPtr &parent) const; | 40 | KScreen::ScreenPtr toKScreenScreen(KScreen::ConfigPtr &parent) const; | ||
43 | void updateKScreenScreen(KScreen::ScreenPtr &screen) const; | 41 | void updateKScreenScreen(KScreen::ScreenPtr &screen) const; | ||
44 | void setOutputs(const QList<WaylandOutput*> &outputs); | 42 | void setOutputs(const QList<WaylandOutput*> &outputs); | ||
45 | 43 | | |||
46 | void setSize(const QSize &size); | 44 | void setSize(const QSize &size); | ||
47 | void setOutputCount(int count); | 45 | void setOutputCount(int count); | ||
48 | 46 | | |||
49 | private: | 47 | private: | ||
50 | QSize m_size; | 48 | QSize m_size; | ||
51 | int m_outputCount; | 49 | int m_outputCount; | ||
52 | }; | 50 | }; | ||
53 | 51 | | |||
54 | } // namespace | 52 | } | ||
55 | | ||||
56 | #endif // KSCREEN_WAYLAND_SCREEN_H | |