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
qbsdfbscreen.h
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// Copyright (C) 2015-2016 Oleksandr Tymoshenko <gonzo@bluezbox.com>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4// Qt-Security score:significant reason:default
5
6#ifndef QBSDFBSCREEN_H
7#define QBSDFBSCREEN_H
8
9#include <QtFbSupport/private/qfbscreen_p.h>
10
12
13class QPainter;
14
15class QBsdFbScreen : public QFbScreen
16{
18public:
19 explicit QBsdFbScreen(const QStringList &args);
21
22 bool initialize() override;
23
24 QPixmap grabWindow(WId wid, int x, int y, int width, int height) const override;
25
26 QRegion doRedraw() override;
27
28private:
29 QStringList m_arguments;
30 int m_framebufferFd = -1;
31 QImage m_onscreenImage;
32
33 int m_bytesPerLine = -1;
34
35 struct {
38 } m_mmap;
39
40 QScopedPointer<QPainter> m_blitter;
41};
42
43QT_END_NAMESPACE
44
45#endif // QBSDFBSCREEN_H
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
void initialize() override
Performs initialization steps that depend on having an event dispatcher available.
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
QPlatformServices * services() const override
QList< QPlatformScreen * > screens() const
QBsdFbIntegration(const QStringList &paramList)
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
bool hasCapability(QPlatformIntegration::Capability cap) const override
QPlatformNativeInterface * nativeInterface() const override
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
bool initialize() override
~QBsdFbScreen() override
QRegion doRedraw() override
QPixmap grabWindow(WId wid, int x, int y, int width, int height) const override
This function is called when Qt needs to be able to grab the content of a window.
friend class QPainter