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
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
14
16
18{
19public:
20 QDirectFbBackingStore(QWindow *window);
21
22 QPaintDevice *paintDevice() override;
23 void flush(QWindow *window, const QRegion &region, 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
29private:
30 void lockSurfaceToImage();
31
32 QScopedPointer<QPixmap> m_pixmap;
33 QBlittablePlatformPixmap *m_pmdata;
34 QDirectFBPointer<IDirectFBSurface> m_dfbSurface;
35};
36
37QT_END_NAMESPACE
38
39#endif
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
void resize(const QSize &size, const QRegion &staticContents) override
QDirectFbBackingStore(QWindow *window)
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
void flush(QWindow *window, const QRegion &region, const QPoint &offset) override
Flushes the given region from the specified window.
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.
\inmodule QtGui
Definition qwindow.h:63
static void scrollSurface(IDirectFBSurface *surface, const QRect &r, int dx, int dy)