#include <qxcbnativeinterface.h>
Definition at line 50 of file qxcbnativeinterface.h.
◆ ResourceType
Enumerator |
---|
Display | |
EglDisplay | |
Connection | |
Screen | |
GraphicsDevice | |
EglContext | |
Definition at line 53 of file qxcbnativeinterface.h.
◆ connectionForWidget()
void * QXcbNativeInterface::connectionForWidget |
( |
QWidget * |
widget | ) |
|
Definition at line 137 of file qxcbnativeinterface.cpp.
static QXcbScreen * qPlatformScreenForWidget(QWidget *widget)
xcb_connection_t * xcb_connection() const
◆ displayForWidget()
void * QXcbNativeInterface::displayForWidget |
( |
QWidget * |
widget | ) |
|
Definition at line 115 of file qxcbnativeinterface.cpp.
117 #if defined(XCB_USE_XLIB) static QXcbScreen * qPlatformScreenForWidget(QWidget *widget)
QXcbConnection * connection() const
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ eglContextForWidget()
void * QXcbNativeInterface::eglContextForWidget |
( |
QWidget * |
widget | ) |
|
Definition at line 162 of file qxcbnativeinterface.cpp.
165 if (!widget->platformWindow()) {
166 qDebug() <<
"QPlatformWindow does not exist for widget" << widget
167 <<
"cannot return EGLContext";
171 if (!platformContext) {
172 qDebug() <<
"QPlatformWindow" << widget->platformWindow() <<
"does not have a glContext" 173 <<
"cannot return EGLContext";
176 #if defined(XCB_USE_EGL) 179 #elif defined (XCB_USE_DRI2) EGLContext eglContext() const
Q_CORE_EXPORT void qDebug(const char *,...)
void * eglContext() const
The QPlatformGLContext class provides an abstraction for native GL contexts.
◆ eglDisplayForWidget()
void * QXcbNativeInterface::eglDisplayForWidget |
( |
QWidget * |
widget | ) |
|
Definition at line 126 of file qxcbnativeinterface.cpp.
128 #if defined(XCB_USE_DRI2) || defined(XCB_USE_EGL) static QXcbScreen * qPlatformScreenForWidget(QWidget *widget)
QXcbConnection * connection() const
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ graphicsDeviceForWidget()
void * QXcbNativeInterface::graphicsDeviceForWidget |
( |
QWidget * |
widget | ) |
|
Definition at line 149 of file qxcbnativeinterface.cpp.
151 #if defined(XCB_USE_DRI2) 154 return deviceName.
data();
char * data()
Returns a pointer to the data stored in the byte array.
static QXcbScreen * qPlatformScreenForWidget(QWidget *widget)
The QByteArray class provides an array of bytes.
QXcbConnection * connection() const
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ nativeResourceForWidget()
void * QXcbNativeInterface::nativeResourceForWidget |
( |
const QByteArray & |
resourceString, |
|
|
QWidget * |
widget |
|
) |
| |
|
virtual |
Reimplemented from QPlatformNativeInterface.
Definition at line 74 of file qxcbnativeinterface.cpp.
77 ResourceType resource = qXcbResourceMap()->value(lowerCaseResource);
static QXcbScreen * qPlatformScreenForWidget(QWidget *widget)
The QByteArray class provides an array of bytes.
QByteArray toLower() const
Returns a lowercase copy of the byte array.
void * connectionForWidget(QWidget *widget)
void * eglContextForWidget(QWidget *widget)
void * graphicsDeviceForWidget(QWidget *widget)
void * displayForWidget(QWidget *widget)
void * eglDisplayForWidget(QWidget *widget)
◆ qPlatformScreenForWidget()
◆ screenForWidget()
void * QXcbNativeInterface::screenForWidget |
( |
QWidget * |
widget | ) |
|
Definition at line 143 of file qxcbnativeinterface.cpp.
static QXcbScreen * qPlatformScreenForWidget(QWidget *widget)
xcb_screen_t * screen() const
The documentation for this class was generated from the following files: