Debian Codegraph @

xcb/libqt5xcbqpa-dev/5.3.0/qxcbbackingstore.h

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 //
3 // SPDX-License-Identifier: LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5 #ifndef QXCBBACKINGSTORE_H
6 #define QXCBBACKINGSTORE_H
7
8 #include <qpa/qplatformbackingstore.h>
9
10 #include <xcb/xcb.h>
11
12 #include "qxcbobject.h"
13
14 QT_BEGIN_NAMESPACE
15
16 class QXcbShmImage;
17
18 class QXcbBackingStore : public QXcbObject, public QPlatformBackingStore
19 {
20 public:
21 QXcbBackingStore(QWindow *widget);
22 ~QXcbBackingStore();
23
24 QPaintDevice *paintDevice();
25 void flush(QWindow *window, const QRegion &region, const QPoint &offset);
26 #ifndef QT_NO_OPENGL
27 void composeAndFlush(QWindow *window, const QRegion &region, const QPoint &offset,
28 QPlatformTextureList *textures, QOpenGLContext *context);
29 #endif
30 QImage toImage() const;
31 void resize(const QSize &size, const QRegion &staticContents);
32 bool scroll(const QRegion &area, int dx, int dy);
33
34 void beginPaint(const QRegion &);
35
36 private:
37 QXcbShmImage *m_image;
38 bool m_syncingResize;
39 };
40
41 QT_END_NAMESPACE
42
43 #endif