Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/fbdev/fb_backend.h
Show All 31 Lines | |||||
32 | class FramebufferOutput : public AbstractWaylandOutput | 32 | class FramebufferOutput : public AbstractWaylandOutput | ||
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 &pixelSize, const QSize &physicalSize); | ||
41 | | ||||
42 | void setRawPhysicalSize(const QSize &set) { | | |||
43 | AbstractWaylandOutput::setRawPhysicalSize(set); | | |||
44 | } | | |||
45 | }; | 41 | }; | ||
46 | 42 | | |||
47 | class KWIN_EXPORT FramebufferBackend : public Platform | 43 | class KWIN_EXPORT FramebufferBackend : public Platform | ||
48 | { | 44 | { | ||
49 | Q_OBJECT | 45 | Q_OBJECT | ||
50 | Q_INTERFACES(KWin::Platform) | 46 | Q_INTERFACES(KWin::Platform) | ||
51 | Q_PLUGIN_METADATA(IID "org.kde.kwin.Platform" FILE "fbdev.json") | 47 | Q_PLUGIN_METADATA(IID "org.kde.kwin.Platform" FILE "fbdev.json") | ||
52 | public: | 48 | public: | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |