Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qbackingstore_x11_p.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#pragma once
6
7#include <qpa/qplatformbackingstore.h>
8
9typedef struct _XDisplay Display;
10
11QT_BEGIN_NAMESPACE
12
13class QXcbWindow;
14
16{
17public:
18 QXcbNativeBackingStore(QWindow *window);
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
31private:
32 Display *display() const;
33
34 QPixmap m_pixmap;
35 bool m_translucentBackground;
36};
37
38QT_END_NAMESPACE
\inmodule QtGui
Definition qwindow.h:63
void setIsBackingStore(bool on)
void beginPaint(const QRegion &region) override
This function is called before painting onto the surface begins, with the region in which the paintin...
QXcbNativeBackingStore(QWindow *window)
void flush(QWindow *window, const QRegion &region, const QPoint &offset) override
Flushes the given region from the specified window.
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
void resize(const QSize &size, const QRegion &staticContents) override
bool scroll(const QRegion &area, int dx, int dy) override
Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative.
XID Pixmap