14#include <QtGui/qwindow.h>
15#include <QtGui/qopenglcontext.h>
16#include <QtGui/qscreen.h>
17#include <qpa/qplatformscreen.h>
32 static const char *
names[] = {
50 qWarning(
"%s: '%s' requested for null window or window without handle.", __FUNCTION__, resource.
constData());
57 switch (
window->surfaceType()) {
70 return bw->surface(
nullptr,
nullptr);
83 qWarning(
"%s: '%s' requested for null screen or screen without handle.", __FUNCTION__, resource.
constData());
115 return sc->moduleHandle();
126 qWarning(
"%s: '%s' requested for null context or context without handle.", __FUNCTION__, resource.
constData());
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
The QCursor class provides a mouse cursor with an arbitrary shape.
QScreen * primaryScreen
the primary (or default) screen of the application.
The QScreen class is used to query screen properties. \inmodule QtGui.
QPlatformScreen * handle() const
Get the platform screen handle.
Platform cursor implementation.
static QWindowsStaticOpenGLContext * staticOpenGLContext()
void * nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) override
void * nativeResourceForWindow(const QByteArray &resource, QWindow *window) override
void * nativeResourceForCursor(const QByteArray &resource, const QCursor &cursor) override
void * nativeResourceForScreen(const QByteArray &resource, QScreen *screen) override
void * nativeResourceForIntegration(const QByteArray &resource) override
Combined button and popup list for selecting options.
#define QByteArrayLiteral(str)
static int resourceType(const QByteArray &key)