Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qiosintegration.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QPLATFORMINTEGRATION_UIKIT_H
6#define QPLATFORMINTEGRATION_UIKIT_H
7
8#include <qpa/qplatformintegration.h>
9#include <qpa/qplatformnativeinterface.h>
10#include <qpa/qwindowsysteminterface.h>
11
12#include <QtCore/private/qfactoryloader_p.h>
13
15
16#if !defined(Q_OS_TVOS) && !defined(Q_OS_VISIONOS)
18#endif
19
20#if defined(Q_OS_VISIONOS)
21#include <swift/bridging>
22#endif
23
25
26using namespace QNativeInterface;
27
28class QIOSServices;
29
30class
31#if defined(Q_OS_VISIONOS)
33#endif
35#if defined(Q_OS_VISIONOS)
37#endif
38{
40public:
43
44 void initialize() override;
45
46 bool hasCapability(Capability cap) const override;
47
48 QPlatformWindow *createPlatformWindow(QWindow *window) const override;
49 QPlatformWindow *createForeignWindow(QWindow *window, WId nativeHandle) const override;
50 QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const override;
51
52#if QT_CONFIG(opengl)
54#endif
55
56 QPlatformOffscreenSurface *createPlatformOffscreenSurface(QOffscreenSurface *surface) const override;
57
58 QPlatformFontDatabase *fontDatabase() const override;
59
60#if QT_CONFIG(clipboard)
62#endif
63
64 QPlatformInputContext *inputContext() const override;
65 QPlatformServices *services() const override;
66
67 QVariant styleHint(StyleHint hint) const override;
68
69 QStringList themeNames() const override;
70 QPlatformTheme *createPlatformTheme(const QString &name) const override;
71
74
76#if QT_CONFIG(tabletevent)
78#endif
79#if QT_CONFIG(accessibility)
81#endif
82
83 void beep() const override;
84
85 void setApplicationBadge(qint64 number) override;
86
87 static QIOSIntegration *instance();
88
89 // -- QPlatformNativeInterface --
90
91 void *nativeResourceForWindow(const QByteArray &resource, QWindow *window) override;
92
93 QFactoryLoader *optionalPlugins() { return m_optionalPlugins; }
94
95 QIOSApplicationState applicationState;
96
97#if defined(Q_OS_VISIONOS)
100
103
106 void handleSpatialEvents(const char *jsonString);
107#endif
108
109private:
110 QPlatformFontDatabase *m_fontDatabase;
111#if QT_CONFIG(clipboard)
113#endif
114 QPlatformInputContext *m_inputContext;
115 QPointingDevice *m_touchDevice;
116#if QT_CONFIG(tabletevent)
118#endif
119 mutable QIOSServices *m_platformServices = nullptr;
120 mutable QPlatformAccessibility *m_accessibility;
121 QFactoryLoader *m_optionalPlugins;
122#if !defined(Q_OS_TVOS) && !defined(Q_OS_VISIONOS)
123 QIOSTextInputOverlay m_textInputOverlay;
124#endif
125
126#if defined(Q_OS_VISIONOS)
128#endif
129};
130
131QT_END_NAMESPACE
132
133#endif
QIOSApplicationState applicationState
void initialize() override
Performs initialization steps that depend on having an event dispatcher available.
QVariant styleHint(StyleHint hint) const override
QPlatformTheme * createPlatformTheme(const QString &name) const override
QFactoryLoader * optionalPlugins()
void * nativeResourceForWindow(const QByteArray &resource, QWindow *window) override
void beep() const override
static QIOSIntegration * instance()
QPlatformOffscreenSurface * createPlatformOffscreenSurface(QOffscreenSurface *surface) const override
Factory function for QOffscreenSurface.
QPlatformWindow * createForeignWindow(QWindow *window, WId nativeHandle) const override
void setApplicationBadge(qint64 number) override
QPointingDevice * touchDevice()
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
QStringList themeNames() const override
QPlatformNativeInterface * nativeInterface() const override
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
QPlatformServices * services() const override
bool hasCapability(Capability cap) const override
QPlatformInputContext * inputContext() const override
Returns the platforms input context.
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.