4#ifndef QWAYLANDSHMBACKINGSTORE_H
5#define QWAYLANDSHMBACKINGSTORE_H
18#include <QtWaylandClient/private/qwaylandbuffer_p.h>
20#include <qpa/qplatformbackingstore.h>
21#include <QtGui/QImage>
22#include <qpa/qplatformwindow.h>
32class QWaylandAbstractDecoration;
40 QSize size()
const override {
return mImage.size(); }
41 int scale()
const override {
return int(mImage.devicePixelRatio()); }
47 struct wl_shm_pool *mShmPool =
nullptr;
49 QImage *mMarginsImage =
nullptr;
62 void beginPaint(
const QRegion ®ion)
override;
63 void endPaint()
override;
67 QMargins windowDecorationMargins()
const;
68 QImage *entireSurface()
const;
69 QImage *contentSurface()
const;
76 QImage toImage()
const override;
80 void updateDecorations();
84 std::list<QWaylandShmBuffer *> mBuffers;
87 bool mPainting =
false;
88 bool mPendingFlush =
false;
93 Qt::WindowFlags mCurrentWindowFlags;
Format
The following image formats are available in Qt.
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
QSize size() const override
int scale() const override
struct wl_display * display
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLintptr offset
GLint GLsizei GLsizei GLenum format
GLenum GLenum GLenum GLenum GLenum scale