25# if QT_CONFIG(xcb_glx_plugin)
26 ,
public QNativeInterface::Private::QGLXIntegration
29 ,
public QNativeInterface::Private::QEGLIntegration
34 QXcbIntegration(
const QStringList ¶meters,
int &argc,
char **argv);
37 QPlatformPixmap *createPlatformPixmap(QPlatformPixmap::PixelType type)
const override;
38 QPlatformWindow *createPlatformWindow(QWindow *window)
const override;
39 QPlatformWindow *createForeignWindow(QWindow *window, WId nativeHandle)
const override;
41 QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context)
const override;
42# if QT_CONFIG(xcb_glx_plugin)
43 QOpenGLContext *createOpenGLContext(GLXContext context,
void *visualInfo, QOpenGLContext *shareContext)
const override;
46 QOpenGLContext *createOpenGLContext(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext)
const override;
49 QPlatformBackingStore *createPlatformBackingStore(QWindow *window)
const override;
51 QPlatformOffscreenSurface *createPlatformOffscreenSurface(QOffscreenSurface *surface)
const override;
53 bool hasCapability(Capability cap)
const override;
54 QAbstractEventDispatcher *createEventDispatcher()
const override;
55 void initialize() override;
57 void moveToScreen(QWindow *window,
int screen);
59 QPlatformFontDatabase *fontDatabase()
const override;
61 QPlatformNativeInterface *nativeInterface()
const override;
63#ifndef QT_NO_CLIPBOARD
64 QPlatformClipboard *clipboard()
const override;
66#if QT_CONFIG(draganddrop)
67 QPlatformDrag *drag()
const override;
70 QPlatformInputContext *inputContext()
const override;
72#if QT_CONFIG(accessibility)
73 QPlatformAccessibility *accessibility()
const override;
76 QPlatformServices *services()
const override;
78 QPlatformKeyMapper *keyMapper()
const override;
80 QStringList themeNames()
const override;
81 QPlatformTheme *createPlatformTheme(
const QString &name)
const override;
82 QVariant styleHint(StyleHint hint)
const override;
84 bool hasConnection()
const {
return m_connection; }
85 QXcbConnection *connection()
const {
return m_connection; }
87 QByteArray wmClass()
const;
90 QPlatformSessionManager *createPlatformSessionManager(
const QString &id,
const QString &key)
const override;
95 void beep()
const override;
98 QPlatformVulkanInstance *createPlatformVulkanInstance(QVulkanInstance *instance)
const override;
101 static QXcbIntegration *instance() {
return m_instance; }
103 void setApplicationBadge(qint64 number) override;
106 QXcbConnection *m_connection =
nullptr;
108 QScopedPointer<QPlatformFontDatabase> m_fontDatabase;
109 QScopedPointer<QXcbNativeInterface> m_nativeInterface;
111 QScopedPointer<QPlatformInputContext> m_inputContext;
113#if QT_CONFIG(accessibility)
114 mutable QScopedPointer<QPlatformAccessibility> m_accessibility;
117 QScopedPointer<QXcbUnixServices> m_services;
119 mutable QByteArray m_wmClass;
120 const char *m_instanceName;
122 xcb_visualid_t m_defaultVisualId;
124 static QXcbIntegration *m_instance;