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
qvncscreen.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
4#ifndef QVncScreen_H
5#define QVncScreen_H
6
7#include <QtFbSupport/private/qfbscreen_p.h>
8
10
11class QPainter;
12class QFbCursor;
13class QTcpSocket;
14class QVncServer;
15class QVncDirtyMap;
16class QVncClientCursor;
17class QVncClient;
18
19class QVncScreen : public QFbScreen
20{
22public:
25
26 bool initialize() override;
27
28 QPixmap grabWindow(WId wid, int x, int y, int width, int height) const override;
29
30 QRegion doRedraw() override;
31 QImage *image() { return &mScreenImage; }
32
33 void enableClientCursor(QVncClient *client);
34 void disableClientCursor(QVncClient *client);
35 QPlatformCursor *cursor() const override;
36
37 Flags flags() const override;
38
40
41#if Q_BYTE_ORDER == Q_BIG_ENDIAN
42 bool swapBytes() const;
43#endif
44
46
47 qreal dpiX = 96;
48 qreal dpiY = 96;
49 QVncDirtyMap *dirty = nullptr;
51 int refreshRate = 30;
53#if QT_CONFIG(cursor)
54 QVncClientCursor *clientCursor = nullptr;
55#endif
56};
57
59
60#endif // QVncScreen_H
61
QImage mScreenImage
Definition qfbscreen_p.h:89
\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 QPlatformCursor class provides information about pointer device events (movement,...
The QRegion class specifies a clip region for a painter.
Definition qregion.h:27
\inmodule QtCore
The QTcpSocket class provides a TCP socket.
Definition qtcpsocket.h:18
void clearDirty()
Definition qvncscreen.h:39
void disableClientCursor(QVncClient *client)
QRegion doRedraw() override
QPlatformCursor * cursor() const override
Reimplement this function in subclass to return the cursor of the screen.
int refreshRate
Definition qvncscreen.h:51
qreal dpiY
Definition qvncscreen.h:48
QVncDirtyMap * dirty
Definition qvncscreen.h:49
qreal dpiX
Definition qvncscreen.h:47
QVncScreen(const QStringList &args)
QVncServer * vncServer
Definition qvncscreen.h:52
Flags flags() const override
QImage * image()
Definition qvncscreen.h:31
QRegion dirtyRegion
Definition qvncscreen.h:50
bool initialize() override
void enableClientCursor(QVncClient *client)
QStringList mArgs
Definition qvncscreen.h:45
bool swapBytes() const
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.
Combined button and popup list for selecting options.
Flags
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
GLint GLsizei width
GLint y
#define Q_OBJECT
double qreal
Definition qtypes.h:187
QJSValueList args