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
qlinuxfbscreen.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 QLINUXFBSCREEN_H
6#define QLINUXFBSCREEN_H
7
8#include <QtFbSupport/private/qfbscreen_p.h>
9
11
12class QPainter;
13class QFbCursor;
14
16{
18public:
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 mArgs;
30 int mFbFd;
31 int mTtyFd;
32
33 QImage mFbScreenImage;
34 int mBytesPerLine;
35 int mOldTtyMode;
36
37 struct {
40 } mMmap;
41
42 QPainter *mBlitter;
43};
44
45QT_END_NAMESPACE
46
47#endif // QLINUXFBSCREEN_H
QLinuxFbIntegration(const QStringList &paramList)
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.
bool initialize() override
QRegion doRedraw() override
friend class QPainter
Combined button and popup list for selecting options.