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
qwindowsdirect2dbackingstore.h
Go to the documentation of this file.
1// Copyright (C) 2016 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 QWINDOWSDIRECT2DBACKINGSTORE_H
5#define QWINDOWSDIRECT2DBACKINGSTORE_H
6
7#include <QtGui/qpa/qplatformbackingstore.h>
8
9QT_BEGIN_NAMESPACE
10
11class QWindowsDirect2DWindow;
12
14{
16
17public:
20
21 void beginPaint(const QRegion &) override;
22 void endPaint() override;
23
24 QPaintDevice *paintDevice() override;
25 void flush(QWindow *targetWindow, const QRegion &region, const QPoint &offset) override;
26 void resize(const QSize &size, const QRegion &staticContents) override;
27
28 QImage toImage() const override;
29};
30
31QT_END_NAMESPACE
32
33#endif // QWINDOWSDIRECT2DBACKINGSTORE_H
\inmodule QtCore\reentrant
Definition qpoint.h:28
void resize(const QSize &size, const QRegion &staticContents) override
void beginPaint(const QRegion &) override
This function is called before painting onto the surface begins, with the region in which the paintin...
void endPaint() override
This function is called after painting onto the surface has ended.
void flush(QWindow *targetWindow, const QRegion &region, const QPoint &offset) override
Flushes the given region from the specified window.
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
Combined button and popup list for selecting options.
static QWindowsDirect2DPlatformPixmap * platformPixmap(QPixmap *p)
static QWindowsDirect2DWindow * nativeWindow(QWindow *window)
static QWindowsDirect2DBitmap * bitmap(QPixmap *p)