Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/fbdev/fb_backend.h
Show All 14 Lines | |||||
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
16 | GNU General Public License for more details. | 16 | GNU General Public License for more details. | ||
17 | 17 | | |||
18 | You should have received a copy of the GNU General Public License | 18 | You should have received a copy of the GNU General Public License | ||
19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 19 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
20 | *********************************************************************/ | 20 | *********************************************************************/ | ||
21 | #ifndef KWIN_FB_BACKEND_H | 21 | #ifndef KWIN_FB_BACKEND_H | ||
22 | #define KWIN_FB_BACKEND_H | 22 | #define KWIN_FB_BACKEND_H | ||
23 | #include "abstract_output.h" | 23 | #include "abstract_wayland_output.h" | ||
24 | #include "platform.h" | 24 | #include "platform.h" | ||
25 | 25 | | |||
26 | #include <QImage> | 26 | #include <QImage> | ||
27 | #include <QSize> | 27 | #include <QSize> | ||
28 | 28 | | |||
29 | namespace KWin | 29 | namespace KWin | ||
30 | { | 30 | { | ||
31 | 31 | | |||
32 | class FramebufferOutput : public AbstractOutput | 32 | class FramebufferOutput : public AbstractWaylandOutput | ||
33 | { | 33 | { | ||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
35 | 35 | | |||
36 | public: | 36 | public: | ||
37 | FramebufferOutput(QObject *parent = nullptr) : AbstractOutput(parent) {} | 37 | FramebufferOutput(QObject *parent = nullptr) : AbstractWaylandOutput(parent) {} | ||
38 | virtual ~FramebufferOutput() = default; | 38 | virtual ~FramebufferOutput() = default; | ||
39 | 39 | | |||
40 | QSize pixelSize() const override { | 40 | QSize pixelSize() const override { | ||
41 | return m_pixelSize; | 41 | return m_pixelSize; | ||
42 | } | 42 | } | ||
43 | void setPixelSize(const QSize &set) { | 43 | void setPixelSize(const QSize &set) { | ||
44 | m_pixelSize = set; | 44 | m_pixelSize = set; | ||
45 | } | 45 | } | ||
46 | 46 | | |||
47 | void setRawPhysicalSize(const QSize &set) { | 47 | void setRawPhysicalSize(const QSize &set) { | ||
48 | AbstractOutput::setRawPhysicalSize(set); | 48 | AbstractWaylandOutput::setRawPhysicalSize(set); | ||
49 | } | 49 | } | ||
50 | 50 | | |||
51 | private: | 51 | private: | ||
52 | QSize m_pixelSize; | 52 | QSize m_pixelSize; | ||
53 | }; | 53 | }; | ||
54 | 54 | | |||
55 | class KWIN_EXPORT FramebufferBackend : public Platform | 55 | class KWIN_EXPORT FramebufferBackend : public Platform | ||
56 | { | 56 | { | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |