7#if !defined(QT_NO_OPENGL)
12#include "qqnxvulkanwindow.h"
18#include "qqnxinputcontext_imf.h"
23#if !defined(QT_NO_OPENGL)
24#include <QtGui/QOpenGLContext>
27#include <QtGui/QScreen>
28#include <QtGui/QWindow>
32using namespace Qt::StringLiterals;
35 : m_integration(integration)
42 if (resource ==
"vkSurface") {
43 if (window && window->surfaceType() == QSurface::VulkanSurface && window->handle())
44 return static_cast<QQnxVulkanWindow *>(window->handle())->surface();
49 if (resource ==
"windowGroup" && window && window->screen()) {
52 screen_window_t screenWindow =
reinterpret_cast<screen_window_t>(window->winId());
53 QQnxWindow *qnxWindow = screen->findWindow(screenWindow);
56 return qnxWindow ?
const_cast<
char *>(qnxWindow->groupName().constData()) : 0;
65 if (resource ==
"QObject*" && screen)
66 return static_cast<QObject*>(
static_cast<
QQnxScreen*>(screen->handle()));
73 if (resource ==
"screenContext")
74 return m_integration->screenContext();
77 if (resource.toLower() ==
"egldisplay")
78 return m_integration->eglDisplay();
84#if !defined(QT_NO_OPENGL)
87 if (resource ==
"eglcontext" && context)
88 return static_cast<
QQnxGLContext*>(context->handle())->eglContext();
98 if (name ==
"qnxWindowGroup"_L1) {
100 qnxWindow->joinWindowGroup(QByteArray());
101 else if (value.canConvert<QByteArray>())
102 qnxWindow->joinWindowGroup(value.toByteArray());
109 if (resource ==
"blackberryIMFSetHighlightColor")
110 return reinterpret_cast<NativeResourceForIntegrationFunction>(QQnxInputContext::setHighlightColor);
111 if (resource ==
"blackberryIMFCheckSpelling")
112 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.