41 ,
public QNativeInterface::Private::QEvdevKeyMapper
42#elif QT_CONFIG(vxworksevdev)
43 ,
public QNativeInterface::Private::QVxKeyMapper
46 ,
public QNativeInterface::Private::QEGLIntegration
52 void initialize() override;
53 void destroy() override;
55 EGLDisplay display()
const {
return m_display; }
57 QAbstractEventDispatcher *createEventDispatcher()
const override;
58 QPlatformFontDatabase *fontDatabase()
const override;
59 QPlatformServices *services()
const override;
60 QPlatformInputContext *inputContext()
const override {
return m_inputContext; }
61 QPlatformTheme *createPlatformTheme(
const QString &name)
const override;
63 QPlatformWindow *createPlatformWindow(QWindow *window)
const override;
64 QPlatformBackingStore *createPlatformBackingStore(QWindow *window)
const override;
66 QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context)
const override;
67 QOpenGLContext *createOpenGLContext(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext)
const override;
68 QPlatformOffscreenSurface *createPlatformOffscreenSurface(QOffscreenSurface *surface)
const override;
70 bool hasCapability(QPlatformIntegration::Capability cap)
const override;
72 QPlatformNativeInterface *nativeInterface()
const override;
75 void *nativeResourceForIntegration(
const QByteArray &resource) override;
76 void *nativeResourceForScreen(
const QByteArray &resource, QScreen *screen) override;
77 void *nativeResourceForWindow(
const QByteArray &resource, QWindow *window) override;
79 void *nativeResourceForContext(
const QByteArray &resource, QOpenGLContext *context) override;
81 NativeResourceForContextFunction nativeResourceFunctionForContext(
const QByteArray &resource) override;
83 QFunctionPointer platformFunction(
const QByteArray &function)
const override;
85 QVariant styleHint(QPlatformIntegration::StyleHint hint)
const override;
87 QFbVtHandler *vtHandler() {
return m_vtHandler.data(); }
89 QPointer<QWindow> pointerWindow() {
return m_pointerWindow; }
90 void setPointerWindow(QWindow *pointerWindow) { m_pointerWindow = pointerWindow; }
92#if QT_CONFIG(evdev) || QT_CONFIG(vxworksevdev)
93 void loadKeymap(
const QString &filename) override;
94 void switchLang() override;
98 virtual void createInputHandlers();
100 QEvdevKeyboardManager *m_kbdMgr =
nullptr;
101#elif QT_CONFIG(vxworksevdev)
102 QVxKeyboardManager *m_kbdMgr =
nullptr;
106 EGLNativeDisplayType nativeDisplay()
const;
108 EGLDisplay m_display;
109 QPlatformInputContext *m_inputContext;
110 QScopedPointer<QPlatformFontDatabase> m_fontDb;
111 mutable QScopedPointer<QPlatformServices> m_services;
112 QScopedPointer<QFbVtHandler> m_vtHandler;
113 QPointer<QWindow> m_pointerWindow;
114 bool m_disableInputHandlers;
115 mutable QPlatformBackingStore *m_bs =
nullptr;