4#ifndef QOFFSCREENCOMMON_H
5#define QOFFSCREENCOMMON_H
7#include <qpa/qplatformbackingstore.h>
8#if QT_CONFIG(draganddrop)
9#include <qpa/qplatformdrag.h>
11#include <qpa/qplatformintegration.h>
12#include <qpa/qplatformnativeinterface.h>
13#include <qpa/qplatformscreen.h>
14#include <qpa/qplatformwindow.h>
30 int depth()
const override {
return 32; }
53#if QT_CONFIG(draganddrop)
Format
The following image formats are available in Qt.
\inmodule QtCore\reentrant
bool scroll(const QRegion &area, int dx, int dy) override
Scrolls the given area dx pixels to the right and dy downward; both dx and dy may be negative.
QImage toImage() const override
Implemented in subclasses to return the content of the backingstore as a QImage.
static QOffscreenBackingStore * backingStoreForWinId(WId id)
void flush(QWindow *window, const QRegion ®ion, const QPoint &offset) override
Flushes the given region from the specified window.
~QOffscreenBackingStore()
void resize(const QSize &size, const QRegion &staticContents) override
QPaintDevice * paintDevice() override
Implement this function to return the appropriate paint device.
QPixmap grabWindow(WId window, const QRect &rect) const
static QPlatformWindow * windowContainingCursor
QScopedPointer< QPlatformCursor > m_cursor
int depth() const override
Reimplement in subclass to return current depth of the screen.
qreal devicePixelRatio() const override
Reimplement this function in subclass to return the device pixel ratio for the screen.
QPlatformCursor * cursor() const override
Reimplement this function in subclass to return the cursor of the screen.
QString name() const override
QList< QPlatformScreen * > virtualSiblings() const override
Returns a list of all the platform screens that are part of the same virtual desktop.
QDpi logicalDpi() const override
Reimplement this function in subclass to return the logical horizontal and vertical dots per inch met...
QPixmap grabWindow(WId window, 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.
const QOffscreenIntegration * m_integration
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
QDpi logicalBaseDpi() const override
Reimplement to return the base logical DPI for the platform.
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
The QRegion class specifies a clip region for a painter.
T * data() const noexcept
Returns the value of the pointer referenced by this object.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
QPair< qreal, qreal > QDpi
static int area(const QSize &s)
GLint GLint GLint GLint GLint x
[0]
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLenum GLuint GLintptr offset