6#include <QtFbSupport/private/qfbwindow_p.h>
7#include <QtFbSupport/private/qfbcursor_p.h>
9#include <QtGui/QPainter>
10#include <QtGui/QScreen>
11#include <QtCore/QRegularExpression>
36 QRegularExpression mmSizeRx(
"mmsize=(?<width>(\\d*\\.)?\\d+)x(?<height>(\\d*\\.)?\\d+)"_L1);
46 if (
arg.contains(mmSizeRx, &
match)) {
48 }
else if (
arg.contains(sizeRx, &
match)) {
50 }
else if (
arg.contains(depthRx, &
match)) {
67 qWarning(
"QVNCScreen::initDevice: No support for screen depth %d",
99 clientCursor =
new QVncClientCursor();
100 clientCursor->addClient(client);
112 uint clientCount = clientCursor->removeClient(client);
113 if (clientCount == 0) {
115 clientCursor =
nullptr;
161#if Q_BYTE_ORDER == Q_BIG_ENDIAN
184#include "moc_qvncscreen.cpp"
QFbWindow * windowForId(WId wid) const
int depth() const override
Reimplement in subclass to return current depth of the screen.
@ DontForceFirstWindowToFullScreen
void initializeCompositor()
virtual QRegion doRedraw()
int width() const
Returns the width of the image.
int height() const
Returns the height of the image.
@ Format_ARGB32_Premultiplied
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
QPixmap copy(int x, int y, int width, int height) const
This is an overloaded member function, provided for convenience. It differs from the above function o...
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
constexpr int height() const noexcept
Returns the height of the rectangle.
constexpr QPoint topLeft() const noexcept
Returns the position of the rectangle's top-left corner.
constexpr void setSize(const QSize &s) noexcept
Sets the size of the rectangle to the given size.
constexpr int width() const noexcept
Returns the width of the rectangle.
The QRegion class specifies a clip region for a painter.
bool isEmpty() const
Returns true if the region is empty; otherwise returns false.
\inmodule QtCore \reentrant
\inmodule QtCore \reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
void disableClientCursor(QVncClient *client)
QRegion doRedraw() override
QPlatformCursor * cursor() const override
Reimplement this function in subclass to return the cursor of the screen.
QVncScreen(const QStringList &args)
Flags flags() const override
bool initialize() override
void enableClientCursor(QVncClient *client)
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.
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
static bool match(const uchar *found, uint foundLen, const char *target, uint targetLen)