42 ,
public QNativeInterface::Private::QEvdevKeyMapper
43#elif QT_CONFIG(vxworksevdev)
44 ,
public QNativeInterface::Private::QVxKeyMapper
47 ,
public QNativeInterface::Private::QEGLIntegration
53 void initialize() override;
54 void destroy() override;
56 EGLDisplay display()
const {
return m_display; }
58 QAbstractEventDispatcher *createEventDispatcher()
const override;
59 QPlatformFontDatabase *fontDatabase()
const override;
60 QPlatformServices *services()
const override;
61 QPlatformInputContext *inputContext()
const override {
return m_inputContext; }
62 QPlatformTheme *createPlatformTheme(
const QString &name)
const override;
64 QPlatformWindow *createPlatformWindow(QWindow *window)
const override;
65 QPlatformBackingStore *createPlatformBackingStore(QWindow *window)
const override;
67 QPlatformOpenGLContext *createPlatformOpenGLContext(QOpenGLContext *context)
const override;
68 QOpenGLContext *createOpenGLContext(EGLContext context, EGLDisplay display, QOpenGLContext *shareContext)
const override;
69 QPlatformOffscreenSurface *createPlatformOffscreenSurface(QOffscreenSurface *surface)
const override;
71 bool hasCapability(QPlatformIntegration::Capability cap)
const override;
73 QPlatformNativeInterface *nativeInterface()
const override;
76 void *nativeResourceForIntegration(
const QByteArray &resource) override;
77 void *nativeResourceForScreen(
const QByteArray &resource, QScreen *screen) override;
78 void *nativeResourceForWindow(
const QByteArray &resource, QWindow *window) override;
80 void *nativeResourceForContext(
const QByteArray &resource, QOpenGLContext *context) override;
82 NativeResourceForContextFunction nativeResourceFunctionForContext(
const QByteArray &resource) override;
84 QFunctionPointer platformFunction(
const QByteArray &function)
const override;
86 QVariant styleHint(QPlatformIntegration::StyleHint hint)
const override;
88 QFbVtHandler *vtHandler() {
return m_vtHandler.data(); }
90 QPointer<QWindow> pointerWindow() {
return m_pointerWindow; }
91 void setPointerWindow(QWindow *pointerWindow) { m_pointerWindow = pointerWindow; }
93#if QT_CONFIG(evdev) || QT_CONFIG(vxworksevdev)
94 void loadKeymap(
const QString &filename) override;
95 void switchLang() override;
99 virtual void createInputHandlers();
101 QEvdevKeyboardManager *m_kbdMgr =
nullptr;
102#elif QT_CONFIG(vxworksevdev)
103 QVxKeyboardManager *m_kbdMgr =
nullptr;
107 EGLNativeDisplayType nativeDisplay()
const;
109 EGLDisplay m_display;
110 QPlatformInputContext *m_inputContext;
111 QScopedPointer<QPlatformFontDatabase> m_fontDb;
112 mutable QScopedPointer<QPlatformServices> m_services;
113 QScopedPointer<QFbVtHandler> m_vtHandler;
114 QPointer<QWindow> m_pointerWindow;
115 bool m_disableInputHandlers;
116 mutable QPlatformBackingStore *m_bs =
nullptr;