6#if !defined(QT_NO_OPENGL)
11#include "qqnxvulkanwindow.h"
17#include "qqnxinputcontext_imf.h"
22#if !defined(QT_NO_OPENGL)
23#include <QtGui/QOpenGLContext>
26#include <QtGui/QScreen>
27#include <QtGui/QWindow>
31using namespace Qt::StringLiterals;
34 : m_integration(integration)
41 if (resource ==
"vkSurface") {
42 if (window && window->surfaceType() == QSurface::VulkanSurface && window->handle())
43 return static_cast<QQnxVulkanWindow *>(window->handle())->surface();
48 if (resource ==
"windowGroup" && window && window->screen()) {
51 screen_window_t screenWindow =
reinterpret_cast<screen_window_t>(window->winId());
52 QQnxWindow *qnxWindow = screen->findWindow(screenWindow);
55 return qnxWindow ?
const_cast<
char *>(qnxWindow->groupName().constData()) : 0;
64 if (resource ==
"QObject*" && screen)
65 return static_cast<QObject*>(
static_cast<
QQnxScreen*>(screen->handle()));
72 if (resource ==
"screenContext")
73 return m_integration->screenContext();
76 if (resource.toLower() ==
"egldisplay")
77 return m_integration->eglDisplay();
83#if !defined(QT_NO_OPENGL)
86 if (resource ==
"eglcontext" && context)
87 return static_cast<
QQnxGLContext*>(context->handle())->eglContext();
97 if (name ==
"qnxWindowGroup"_L1) {
99 qnxWindow->joinWindowGroup(QByteArray());
100 else if (value.canConvert<QByteArray>())
101 qnxWindow->joinWindowGroup(value.toByteArray());
108 if (resource ==
"blackberryIMFSetHighlightColor")
109 return reinterpret_cast<NativeResourceForIntegrationFunction>(QQnxInputContext::setHighlightColor);
110 if (resource ==
"blackberryIMFCheckSpelling")
111 return reinterpret_cast<NativeResourceForIntegrationFunction>(QQnxInputContext::checkSpelling);
void * nativeResourceForScreen(const QByteArray &resource, QScreen *screen) override
void * nativeResourceForWindow(const QByteArray &resource, QWindow *window) override
void * nativeResourceForContext(const QByteArray &resource, QOpenGLContext *context) override
QQnxNativeInterface(QQnxIntegration *integration)
void * nativeResourceForIntegration(const QByteArray &resource) override
NativeResourceForIntegrationFunction nativeResourceFunctionForIntegration(const QByteArray &resource) override
void setWindowProperty(QPlatformWindow *window, const QString &name, const QVariant &value) override
Sets a window property with name to value.
The QQnxWindow is the base class of the various classes used as instances of QPlatformWindow in the Q...
Combined button and popup list for selecting options.