blob: 30ac10f94cc76b0e8c56ad9808881e5ff8bb60bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// Copyright (C) 2017 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 QINTEGRITYFBSCREEN_H
#define QINTEGRITYFBSCREEN_H
#include <QtFbSupport/private/qfbscreen_p.h>
#include <device/fbdriver.h>
QT_BEGIN_NAMESPACE
class QPainter;
class QFbCursor;
class QIntegrityFbScreen : public QFbScreen
{
Q_OBJECT
public:
QIntegrityFbScreen(const QStringList &args);
~QIntegrityFbScreen();
bool initialize();
QPixmap grabWindow(WId wid, int x, int y, int width, int height) const override;
QRegion doRedraw() override;
private:
QStringList mArgs;
FBDriver *mFbd;
FBHandle mFbh;
FBInfo mFbinfo;
MemoryRegion mVMR;
Address mVMRCookie;
QImage mFbScreenImage;
QPainter *mBlitter;
};
QT_END_NAMESPACE
#endif // QINTEGRITYFBSCREEN_H
|