GCC Code Coverage Report


Directory: ./
File: backends/wayland/waylandscreen.h
Date: 2023-04-20 22:59:23
Exec Total Coverage
Lines: 1 1 100.0%
Branches: 0 0 -%

Line Branch Exec Source
1 /*************************************************************************************
2 * Copyright 2014-2015 Sebastian K├╝gler <sebas@kde.org> *
3 * *
4 * This library is free software; you can redistribute it and/or *
5 * modify it under the terms of the GNU Lesser General Public *
6 * License as published by the Free Software Foundation; either *
7 * version 2.1 of the License, or (at your option) any later version. *
8 * *
9 * This library is distributed in the hope that it will be useful, *
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
12 * Lesser General Public License for more details. *
13 * *
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 *
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA *
17 *************************************************************************************/
18 #pragma once
19
20 #include "backend.h"
21 #include "config.h"
22 #include "screen.h"
23
24 #include <QObject>
25 #include <QSize>
26
27 namespace Disman
28 {
29 class WaylandOutput;
30
31 class WaylandScreen : public QObject
32 {
33 Q_OBJECT
34
35 public:
36 explicit WaylandScreen(QObject* parent = nullptr);
37 84 ~WaylandScreen() override = default;
38
39 Disman::ScreenPtr toDismanScreen(Disman::ConfigPtr& parent) const;
40 void updateDismanScreen(Disman::ScreenPtr& screen) const;
41 void setOutputs(std::vector<WaylandOutput*> const& outputs);
42
43 void setSize(const QSize& size);
44 void setOutputCount(int count);
45
46 private:
47 QSize m_size;
48 int m_outputCount;
49 };
50
51 }
52