Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qwindowsbackingstore.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 QWINDOWSBACKINGSTORE_H
5#define QWINDOWSBACKINGSTORE_H
6
7#include <QtCore/qt_windows.h>
8
9#include <qpa/qplatformbackingstore.h>
10#include <QtCore/qscopedpointer.h>
11
13
14class QWindowsWindow;
16
18{
19 Q_DISABLE_COPY_MOVE(QWindowsBackingStore)
20public:
22 ~QWindowsBackingStore() override;
23
24 QPaintDevice *paintDevice() override;
25 void flush(QWindow *window, const QRegion &region, const QPoint &offset) override;
26 void resize(const QSize &size, const QRegion &r) override;
27 bool scroll(const QRegion &area, int dx, int dy) override;
28 void beginPaint(const QRegion &) override;
29
30 HDC getDC() const;
31
32 QImage toImage() const override;
33
34private:
35 QScopedPointer<QWindowsNativeImage> m_image;
36 bool m_alphaNeedsFill;
37};
38
40
41#endif // QWINDOWSBACKINGSTORE_H
\inmodule QtGui
Definition qimage.h:37
The QPlatformBackingStore class provides the drawing area for top-level windows.
QWindow * window() const
Returns a pointer to the top-level window associated with this surface.
\inmodule QtCore\reentrant
Definition qpoint.h:25
The QRegion class specifies a clip region for a painter.
Definition qregion.h:27
\inmodule QtCore
Definition qsize.h:25
\inmodule QtGui
Definition qwindow.h:63
Backing store for windows.
void beginPaint(const QRegion &) override
This function is called before painting onto the surface begins, with the region in which the paintin...
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
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.
QWindowsBackingStore(QWindow *window)
void flush(QWindow *window, const QRegion &region, const QPoint &offset) override
Flushes the given region from the specified window.
void resize(const QSize &size, const QRegion &r) override
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
Windows Native image.
Raster or OpenGL Window.
Combined button and popup list for selecting options.
static int area(const QSize &s)
Definition qicon.cpp:153
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLboolean r
[2]
GLenum GLuint GLintptr offset