Debian Codegraph @

xcb/libqt6xcbqpa-dev/6.6.1/nativepainting/qbackingstore_x11_p.h

raw
1 // Copyright (C) 2018 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4 #ifndef QBACKINGSTORE_X11_H
5 #define QBACKINGSTORE_X11_H
6
7 #include <qpa/qplatformbackingstore.h>
8
9 typedef struct _XDisplay Display;
10
11 QT_BEGIN_NAMESPACE
12
13 class QXcbWindow;
14
15 class QXcbNativeBackingStore : public QPlatformBackingStore
16 {
17 public:
18 QXcbNativeBackingStore(QWindow *window);
19 ~QXcbNativeBackingStore();
20
21 QPaintDevice *paintDevice() override;
22 void flush(QWindow *window, const QRegion &region, const QPoint &offset) override;
23
24 QImage toImage() const override;
25
26 void resize(const QSize &size, const QRegion &staticContents) override;
27 bool scroll(const QRegion &area, int dx, int dy) override;
28
29 void beginPaint(const QRegion &region) override;
30
31 private:
32 Display *display() const;
33
34 QPixmap m_pixmap;
35 bool m_translucentBackground;
36 };
37
38 QT_END_NAMESPACE
39
40 #endif // QBACKINGSTORE_X11_H