Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QWINDOWSBACKINGSTORE_H
6
#
define
QWINDOWSBACKINGSTORE_H
7
8
#
include
<
QtCore
/
qt_windows
.
h
>
9
10
#
include
<
qpa
/
qplatformbackingstore
.
h
>
11
#
include
<
QtCore
/
qscopedpointer
.
h
>
12
13
QT_BEGIN_NAMESPACE
14
15
class
QWindowsWindow;
16
class
QWindowsNativeImage;
17
18
class
QWindowsBackingStore
:
public
QPlatformBackingStore
19
{
20
Q_DISABLE_COPY_MOVE
(
QWindowsBackingStore
)
21
public
:
22
QWindowsBackingStore
(
QWindow
*
window
);
23
~
QWindowsBackingStore
()
override
;
24
25
QPaintDevice
*
paintDevice
()
override
;
26
void
flush
(QWindow *window,
const
QRegion ®ion,
const
QPoint &offset)
override
;
27
void
resize
(
const
QSize &size,
const
QRegion &r)
override
;
28
bool
scroll
(
const
QRegion &area,
int
dx,
int
dy)
override
;
29
void
beginPaint
(
const
QRegion &)
override
;
30
31
HDC
getDC
()
const
;
32
33
QImage
toImage
()
const
override
;
34
35
private
:
36
QScopedPointer<QWindowsNativeImage> m_image;
37
bool
m_alphaNeedsFill;
38
};
39
40
QT_END_NAMESPACE
41
42
#
endif
// QWINDOWSBACKINGSTORE_H
QPoint
\inmodule QtCore\reentrant
Definition
qpoint.h:30
QWindow
\inmodule QtGui
Definition
qwindow.h:64
QWindowsBackingStore
Backing store for windows.
Definition
qwindowsbackingstore.h:19
QWindowsBackingStore::beginPaint
void beginPaint(const QRegion &) override
This function is called before painting onto the surface begins, with the region in which the paintin...
Definition
qwindowsbackingstore.cpp:157
QWindowsBackingStore::~QWindowsBackingStore
~QWindowsBackingStore() override
Definition
qwindowsbackingstore.cpp:32
QWindowsBackingStore::getDC
HDC getDC() const
Definition
qwindowsbackingstore.cpp:171
QWindowsBackingStore::paintDevice
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
Definition
qwindowsbackingstore.cpp:37
QWindowsBackingStore::scroll
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.
Definition
qwindowsbackingstore.cpp:145
QWindowsBackingStore::flush
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override
Flushes the given region from the specified window.
Definition
qwindowsbackingstore.cpp:43
QWindowsBackingStore::resize
void resize(const QSize &size, const QRegion &r) override
Definition
qwindowsbackingstore.cpp:103
QWindowsBackingStore::toImage
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
Definition
qwindowsbackingstore.cpp:178
QWindowsContext
Singleton container for all relevant information.
Definition
qwindowscontext.h:50
QWindowsContext::verbose
static int verbose
Definition
qwindowscontext.h:62
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qt_scrollRectInImage
Q_GUI_EXPORT void qt_scrollRectInImage(QImage &img, const QRect &rect, const QPoint &offset)
Definition
qbackingstore.cpp:305
qtbase
src
plugins
platforms
windows
qwindowsbackingstore.h
Generated on
for Qt by
1.18.0