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()); }
49 struct wl_shm_pool *mShmPool =
nullptr;
51 QImage *mMarginsImage =
nullptr;
64 void beginPaint(
const QRegion ®ion)
override;
65 void endPaint()
override;
69 QMargins windowDecorationMargins()
const;
70 QImage *entireSurface()
const;
71 QImage *contentSurface()
const;
72 bool recreateBackBufferIfNeeded();
78 QImage toImage()
const override;
82 void updateDirtyStates(
const QRegion ®ion);
83 void updateDecorations();
87 std::list<QWaylandShmBuffer *> mBuffers;
90 bool mPainting =
false;
91 bool mPendingFlush =
false;
96 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