Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
5#ifndef QBSDFBSCREEN_H
6#define QBSDFBSCREEN_H
7
8#include <QtFbSupport/private/qfbscreen_p.h>
9
11
12class QPainter;
13
14class QBsdFbScreen : public QFbScreen
15{
17public:
18 explicit QBsdFbScreen(const QStringList &args);
19 ~QBsdFbScreen() override;
20
21 bool initialize() override;
22
23 QPixmap grabWindow(WId wid, int x, int y, int width, int height) const override;
24
25 QRegion doRedraw() override;
26
27private:
28 QStringList m_arguments;
29 int m_framebufferFd = -1;
30 QImage m_onscreenImage;
31
32 int m_bytesPerLine = -1;
33
34 struct {
37 } m_mmap;
38
39 QScopedPointer<QPainter> m_blitter;
40};
41
43
44#endif // QBSDFBSCREEN_H
bool initialize() override
QBsdFbScreen(const QStringList &args)
~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.
\inmodule QtGui
Definition qimage.h:37
The QPainter class performs low-level painting on widgets and other paint devices.
Definition qpainter.h:46
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
The QRegion class specifies a clip region for a painter.
Definition qregion.h:27
\inmodule QtCore
Combined button and popup list for selecting options.
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
GLint GLsizei width
GLint y
#define Q_OBJECT
unsigned char uchar
Definition qtypes.h:32
QJSValueList args