// Copyright (C) 2016 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only #ifndef QWINDOWSURFACE_DIRECTFB_H #define QWINDOWSURFACE_DIRECTFB_H #include #include #include #include "qdirectfbconvenience.h" QT_BEGIN_NAMESPACE class QDirectFbBackingStore : public QPlatformBackingStore { public: QDirectFbBackingStore(QWindow *window); QPaintDevice *paintDevice() override; void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override; void resize (const QSize &size, const QRegion &staticContents) override; bool scroll(const QRegion &area, int dx, int dy) override; QImage toImage() const override; private: void lockSurfaceToImage(); QScopedPointer m_pixmap; QBlittablePlatformPixmap *m_pmdata; QDirectFBPointer m_dfbSurface; }; QT_END_NAMESPACE #endif