Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qqnxintegration.h>
Public Member Functions | |
QQnxIntegration (const QStringList ¶mList) | |
~QQnxIntegration () | |
bool | hasCapability (QPlatformIntegration::Capability cap) const override |
QPlatformWindow * | createForeignWindow (QWindow *window, WId nativeHandle) const override |
QPlatformWindow * | createPlatformWindow (QWindow *window) const override |
Factory function for QPlatformWindow. | |
QPlatformBackingStore * | createPlatformBackingStore (QWindow *window) const override |
Factory function for QPlatformBackingStore. | |
void | moveToScreen (QWindow *window, int screen) |
bool | supportsNavigatorEvents () const |
QAbstractEventDispatcher * | createEventDispatcher () const override |
Factory function for the GUI event dispatcher. | |
QPlatformFontDatabase * | fontDatabase () const override |
Accessor for the platform integration's fontdatabase. | |
QPlatformNativeInterface * | nativeInterface () const override |
QPlatformClipboard * | clipboard () const override |
Accessor for the platform integration's clipboard. | |
QVariant | styleHint (StyleHint hint) const override |
QPlatformServices * | services () const override |
QWindow * | window (screen_window_t qnxWindow) const |
QQnxScreen * | screenForNative (screen_display_t qnxScreen) const |
void | createDisplay (screen_display_t display, bool isPrimary) |
void | removeDisplay (QQnxScreen *screen) |
QQnxScreen * | primaryDisplay () const |
Options | options () const |
screen_context_t | screenContext () |
QByteArray | screenContextId () |
QQnxNavigatorEventHandler * | navigatorEventHandler () |
Public Member Functions inherited from QPlatformIntegration | |
virtual | ~QPlatformIntegration () |
virtual QPlatformPixmap * | createPlatformPixmap (QPlatformPixmap::PixelType type) const |
Factory function for QPlatformPixmap. | |
virtual QPlatformOpenGLContext * | createPlatformOpenGLContext (QOpenGLContext *context) const |
Factory function for QPlatformOpenGLContext. | |
virtual QPlatformSharedGraphicsCache * | createPlatformSharedGraphicsCache (const char *cacheId) const |
Factory function for QPlatformSharedGraphicsCache. | |
virtual QPaintEngine * | createImagePaintEngine (QPaintDevice *paintDevice) const |
Factory function for QPaintEngine. | |
virtual void | initialize () |
Performs initialization steps that depend on having an event dispatcher available. | |
virtual void | destroy () |
Called before the platform integration is deleted. | |
virtual QPlatformInputContext * | inputContext () const |
Returns the platforms input context. | |
virtual Qt::WindowState | defaultWindowState (Qt::WindowFlags) const |
virtual QPlatformKeyMapper * | keyMapper () const |
Accessor for the platform integration's key mapper. | |
virtual QStringList | themeNames () const |
virtual QPlatformTheme * | createPlatformTheme (const QString &name) const |
virtual QPlatformOffscreenSurface * | createPlatformOffscreenSurface (QOffscreenSurface *surface) const |
Factory function for QOffscreenSurface. | |
virtual QPlatformSessionManager * | createPlatformSessionManager (const QString &id, const QString &key) const |
virtual void | sync () |
virtual QOpenGLContext::OpenGLModuleType | openGLModuleType () |
Platform integration function for querying the OpenGL implementation type. | |
virtual void | setApplicationIcon (const QIcon &icon) const |
virtual void | setApplicationBadge (qint64 number) |
virtual void | beep () const |
virtual void | quit () const |
template<auto func, typename... Args> | |
auto | call (Args... args) |
Static Public Member Functions | |
static QQnxIntegration * | instance () |
Friends | |
class | QQnxWindow |
Additional Inherited Members | |
Protected Member Functions inherited from QPlatformIntegration | |
virtual Qt::KeyboardModifiers | queryKeyboardModifiers () const |
virtual QList< int > | possibleKeys (const QKeyEvent *) const |
Should be used to obtain a list of possible shortcuts for the given key event. | |
QPlatformIntegration ()=default | |
Definition at line 49 of file qqnxintegration.h.
Enumerator | |
---|---|
NoOptions | |
FullScreenApplication | |
RootWindow | |
AlwaysFlushScreenContext | |
SurfacelessEGLContext |
Definition at line 52 of file qqnxintegration.h.
|
explicit |
Definition at line 113 of file qqnxintegration.cpp.
References QQnxScreenEventHandler::addScreenEventFilter(), QObject::connect(), QByteArray::constData(), QPlatformInputContextFactory::create(), QByteArray::data(), getContextCapabilities(), QMetaObject::invokeMethod(), parseOptions(), primaryDisplay(), Q_FUNC_INFO, qCDebug, qFatal, Qt::QueuedConnection, QByteArray::resize(), QQnxScreenEventHandler::setScreenEventThread(), SIGNAL, QByteArray::size(), SLOT, and QThread::start().
QQnxIntegration::~QQnxIntegration | ( | ) |
Definition at line 218 of file qqnxintegration.cpp.
References qCDebug.
|
overridevirtual |
Accessor for the platform integration's clipboard.
Default implementation returns a default QPlatformClipboard.
Reimplemented from QPlatformIntegration.
Definition at line 435 of file qqnxintegration.cpp.
References Q_FUNC_INFO, and qCDebug.
void QQnxIntegration::createDisplay | ( | screen_display_t | display, |
bool | isPrimary ) |
Definition at line 635 of file qqnxintegration.cpp.
References QList< T >::append(), QObject::connect(), QWindowSystemInterface::handleScreenAdded(), screen, SIGNAL, and SLOT.
|
overridevirtual |
Factory function for the GUI event dispatcher.
The platform plugin should create and return a QAbstractEventDispatcher subclass when this function is called.
If the platform plugin for some reason creates the event dispatcher outside of this function (for example in the constructor), it needs to handle the case where this function is never called, ensuring that the event dispatcher is still deleted at some point (typically in the destructor).
Note that the platform plugin should never explicitly set the event dispatcher itself, using QCoreApplication::setEventDispatcher(), but let QCoreApplication decide when and which event dispatcher to create.
Implements QPlatformIntegration.
Definition at line 418 of file qqnxintegration.cpp.
References Q_FUNC_INFO, and qCDebug.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 299 of file qqnxintegration.cpp.
References qWarning, and window().
|
overridevirtual |
Factory function for QPlatformBackingStore.
The QWindow parameter is a pointer to the top level widget(tlw) the window surface is created for. A QPlatformWindow is always created before the QPlatformBackingStore for tlw where the widget also requires a backing store.
Implements QPlatformIntegration.
Definition at line 329 of file qqnxintegration.cpp.
References Q_FUNC_INFO, qCDebug, and window().
|
overridevirtual |
Factory function for QPlatformWindow.
The window parameter is a pointer to the window which the QPlatformWindow is supposed to be created for.
All windows have to have a QPlatformWindow, and it will be created on-demand when the QWindow is made visible for the first time, or explicitly through calling QWindow::create().
In the constructor, of the QPlatformWindow, the window flags, state, title and geometry of the window should be applied to the underlying window. If the resulting flags or state differs, the resulting values should be set on the window using QWindow::setWindowFlags() or QWindow::setWindowState(), respectively.
Implements QPlatformIntegration.
Definition at line 311 of file qqnxintegration.cpp.
References QSurface::OpenGLSurface, options(), Q_FUNC_INFO, qCDebug, qFatal, QSurface::RasterSurface, RootWindow, and window().
|
inlineoverridevirtual |
Accessor for the platform integration's fontdatabase.
Default implementation returns a default QPlatformFontDatabase.
Reimplemented from QPlatformIntegration.
Definition at line 86 of file qqnxintegration.h.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 280 of file qqnxintegration.cpp.
References QPlatformIntegration::BufferQueueingOpenGL, QPlatformIntegration::ForeignWindows, QPlatformIntegration::hasCapability(), QPlatformIntegration::MultipleWindows, QPlatformIntegration::OpenGL, Q_FUNC_INFO, qCDebug, QPlatformIntegration::ThreadedOpenGL, and QPlatformIntegration::ThreadedPixmaps.
|
inlinestatic |
Definition at line 63 of file qqnxintegration.h.
Referenced by QQnxWindow::~QQnxWindow(), QQnxWindow::initWindow(), makeFlags(), qScreenCheckError(), QQnxWindow::setScreen(), and QQnxWindow::shouldMakeFullScreen().
Definition at line 404 of file qqnxintegration.cpp.
References QList< T >::at(), Q_FUNC_INFO, qCDebug, screen, QQnxWindow::setScreen(), and window().
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 429 of file qqnxintegration.cpp.
QQnxNavigatorEventHandler * QQnxIntegration::navigatorEventHandler | ( | ) |
Definition at line 702 of file qqnxintegration.cpp.
QQnxIntegration::Options QQnxIntegration::options | ( | ) | const |
Definition at line 687 of file qqnxintegration.cpp.
Referenced by createPlatformWindow().
QQnxScreen * QQnxIntegration::primaryDisplay | ( | ) | const |
Definition at line 682 of file qqnxintegration.cpp.
References QList< T >::first().
Referenced by QQnxIntegration(), and QQnxInputContext::keyboardRect().
void QQnxIntegration::removeDisplay | ( | QQnxScreen * | screen | ) |
Definition at line 654 of file qqnxintegration.cpp.
References QListSpecialMethodsBase< T >::contains(), QWindowSystemInterface::handleScreenRemoved(), Q_ASSERT, Q_CHECK_PTR(), QList< T >::removeAll(), and screen.
screen_context_t QQnxIntegration::screenContext | ( | ) |
Definition at line 692 of file qqnxintegration.cpp.
Referenced by QQnxNativeInterface::nativeResourceForIntegration().
QByteArray QQnxIntegration::screenContextId | ( | ) |
Definition at line 697 of file qqnxintegration.cpp.
QQnxScreen * QQnxIntegration::screenForNative | ( | screen_display_t | qnxScreen | ) | const |
Definition at line 672 of file qqnxintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 463 of file qqnxintegration.cpp.
|
overridevirtual |
Reimplemented from QPlatformIntegration.
Definition at line 454 of file qqnxintegration.cpp.
References FullScreenApplication, hint(), Q_FUNC_INFO, qCDebug, QPlatformIntegration::ShowIsFullScreen, and QPlatformIntegration::styleHint().
bool QQnxIntegration::supportsNavigatorEvents | ( | ) | const |
Definition at line 707 of file qqnxintegration.cpp.
QWindow * QQnxIntegration::window | ( | screen_window_t | qnxWindow | ) | const |
Definition at line 468 of file qqnxintegration.cpp.
References Q_FUNC_INFO, Q_UNUSED, qCDebug, and QHash< Key, T >::value().
|
friend |
Definition at line 159 of file qqnxintegration.h.