Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/fbdev/fb_backend.h
Show All 32 Lines | |||||
33 | { | 33 | { | ||
34 | Q_OBJECT | 34 | Q_OBJECT | ||
35 | 35 | | |||
36 | public: | 36 | public: | ||
37 | FramebufferOutput(QObject *parent = nullptr) : AbstractWaylandOutput(parent) {} | 37 | FramebufferOutput(QObject *parent = nullptr) : AbstractWaylandOutput(parent) {} | ||
38 | ~FramebufferOutput() override = default; | 38 | ~FramebufferOutput() override = default; | ||
39 | 39 | | |||
40 | void init(const QSize &size); | 40 | void init(const QSize &size); | ||
41 | QSize pixelSize() const override { | | |||
42 | return m_pixelSize; | | |||
43 | } | | |||
44 | 41 | | |||
45 | void setRawPhysicalSize(const QSize &set) { | 42 | void setRawPhysicalSize(const QSize &set) { | ||
46 | AbstractWaylandOutput::setRawPhysicalSize(set); | 43 | AbstractWaylandOutput::setRawPhysicalSize(set); | ||
47 | } | 44 | } | ||
48 | | ||||
49 | private: | | |||
50 | QSize m_pixelSize; | | |||
51 | }; | 45 | }; | ||
52 | 46 | | |||
53 | class KWIN_EXPORT FramebufferBackend : public Platform | 47 | class KWIN_EXPORT FramebufferBackend : public Platform | ||
54 | { | 48 | { | ||
55 | Q_OBJECT | 49 | Q_OBJECT | ||
56 | Q_INTERFACES(KWin::Platform) | 50 | Q_INTERFACES(KWin::Platform) | ||
57 | Q_PLUGIN_METADATA(IID "org.kde.kwin.Platform" FILE "fbdev.json") | 51 | Q_PLUGIN_METADATA(IID "org.kde.kwin.Platform" FILE "fbdev.json") | ||
58 | public: | 52 | public: | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |