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
qdirectfbbackingstore.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
QWINDOWSURFACE_DIRECTFB_H
6
#
define
QWINDOWSURFACE_DIRECTFB_H
7
8
#
include
<
qpa
/
qplatformbackingstore
.
h
>
9
#
include
<
private
/
qpixmap_blitter_p
.
h
>
10
11
#
include
<
directfb
.
h
>
12
13
#
include
"qdirectfbconvenience.h"
14
15
QT_BEGIN_NAMESPACE
16
17
class
QDirectFbBackingStore
:
public
QPlatformBackingStore
18
{
19
public
:
20
QDirectFbBackingStore
(QWindow *window);
21
22
QPaintDevice
*
paintDevice
()
override
;
23
void
flush
(QWindow *window,
const
QRegion ®ion,
const
QPoint &offset)
override
;
24
void
resize
(
const
QSize &size,
const
QRegion &staticContents)
override
;
25
bool
scroll
(
const
QRegion &area,
int
dx,
int
dy)
override
;
26
27
QImage
toImage
()
const
override
;
28
29
private
:
30
void
lockSurfaceToImage();
31
32
QScopedPointer<QPixmap> m_pixmap;
33
QBlittablePlatformPixmap *m_pmdata;
34
QDirectFBPointer<IDirectFBSurface> m_dfbSurface;
35
};
36
37
QT_END_NAMESPACE
38
39
#
endif
QDirectFbBackingStore
Definition
qdirectfbbackingstore.h:18
QDirectFbBackingStore::paintDevice
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
Definition
qdirectfbbackingstore.cpp:29
QDirectFbBackingStore::resize
void resize(const QSize &size, const QRegion &staticContents) override
Definition
qdirectfbbackingstore.cpp:44
QDirectFbBackingStore::QDirectFbBackingStore
QDirectFbBackingStore(QWindow *window)
Definition
qdirectfbbackingstore.cpp:16
QDirectFbBackingStore::toImage
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
Definition
qdirectfbbackingstore.cpp:80
QDirectFbBackingStore::flush
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override
Flushes the given region from the specified window.
Definition
qdirectfbbackingstore.cpp:34
QDirectFbBackingStore::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
qdirectfbbackingstore.cpp:64
QDirectFbBlitter
Definition
qdirectfbblitter.h:17
QWindow
\inmodule QtGui
Definition
qwindow.h:64
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
scrollSurface
static void scrollSurface(IDirectFBSurface *surface, const QRect &r, int dx, int dy)
Definition
qdirectfbbackingstore.cpp:56
qtbase
src
plugins
platforms
directfb
qdirectfbbackingstore.h
Generated on
for Qt by
1.18.0