Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/windowed/x11windowed_backend.h
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | 40 | { | |||
---|---|---|---|---|---|
42 | Q_INTERFACES(KWin::Platform) | 42 | Q_INTERFACES(KWin::Platform) | ||
43 | Q_PLUGIN_METADATA(IID "org.kde.kwin.Platform" FILE "x11.json") | 43 | Q_PLUGIN_METADATA(IID "org.kde.kwin.Platform" FILE "x11.json") | ||
44 | Q_PROPERTY(QSize size READ screenSize NOTIFY sizeChanged) | 44 | Q_PROPERTY(QSize size READ screenSize NOTIFY sizeChanged) | ||
45 | public: | 45 | public: | ||
46 | X11WindowedBackend(QObject *parent = nullptr); | 46 | X11WindowedBackend(QObject *parent = nullptr); | ||
47 | virtual ~X11WindowedBackend(); | 47 | virtual ~X11WindowedBackend(); | ||
48 | void init() override; | 48 | void init() override; | ||
49 | QVector<QRect> screenGeometries() const override; | 49 | QVector<QRect> screenGeometries() const override; | ||
50 | QVector<qreal> screenScales() const override; | ||||
50 | 51 | | |||
51 | xcb_connection_t *connection() const { | 52 | xcb_connection_t *connection() const { | ||
52 | return m_connection; | 53 | return m_connection; | ||
53 | } | 54 | } | ||
54 | int screenNumer() const { | 55 | int screenNumer() const { | ||
55 | return m_screenNumber; | 56 | return m_screenNumber; | ||
56 | } | 57 | } | ||
57 | xcb_window_t window() const { | 58 | xcb_window_t window() const { | ||
▲ Show 20 Lines • Show All 50 Lines • Show Last 20 Lines |