45 #include <QtGui/private/qapplication_p.h> 68 ResourceType resource = qXlibResourceMap()->value(lowerCaseResource);
72 result = displayForWidget(
widget);
75 result = eglDisplayForWidget(
widget);
78 result = connectionForWidget(
widget);
81 result =
reinterpret_cast<void *
>(qPlatformScreenForWidget(
widget)->xScreenNumber());
84 result = graphicsDeviceForWidget(
widget);
87 result = eglContextForWidget(
widget);
97 return qPlatformScreenForWidget(widget)->display()->nativeDisplay();
130 screen =
static_cast<QXlibScreen *
>(QApplicationPrivate::platformIntegration()->screens()[0]);
static QXlibScreen * qPlatformScreenForWidget(QWidget *widget)
QPointer< QWidget > widget
The QByteArray class provides an array of bytes.
QByteArray toLower() const
Returns a lowercase copy of the byte array.
void * screenForWidget(QWidget *widget)
void * eglDisplayForWidget(QWidget *widget)
#define Q_GLOBAL_STATIC(TYPE, NAME)
Declares a global static variable with the given type and name.
void * displayForWidget(QWidget *widget)
iterator insert(const QByteArray &key, const QXlibNativeInterface::ResourceType &value)
Inserts a new item with the key key and a value of value.
void * eglContextForWidget(QWidget *widget)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
The QMap class is a template class that provides a skip-list-based dictionary.
void * graphicsDeviceForWidget(QWidget *widget)