Qt 6.x
The Qt SDK
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
4#ifndef QPLATFORMINTEGRATION_UIKIT_H
5#define QPLATFORMINTEGRATION_UIKIT_H
6
7#include <qpa/qplatformintegration.h>
8#include <qpa/qplatformnativeinterface.h>
9#include <qpa/qwindowsysteminterface.h>
10
11#include <QtCore/private/qfactoryloader_p.h>
12
14#ifndef Q_OS_TVOS
16#endif
17
19
20class QIOSServices;
21
23{
25public:
28
29 void initialize() override;
30
31 bool hasCapability(Capability cap) const override;
32
35
36#if QT_CONFIG(opengl)
38#endif
39
41
42 QPlatformFontDatabase *fontDatabase() const override;
43#ifndef QT_NO_CLIPBOARD
44 QPlatformClipboard *clipboard() const override;
45#endif
46 QPlatformInputContext *inputContext() const override;
47 QPlatformServices *services() const override;
48
49 QVariant styleHint(StyleHint hint) const override;
50
51 QStringList themeNames() const override;
52 QPlatformTheme *createPlatformTheme(const QString &name) const override;
53
56
58#if QT_CONFIG(accessibility)
59 QPlatformAccessibility *accessibility() const override;
60#endif
61
62 void beep() const override;
63
64 void setApplicationBadge(qint64 number) override;
65
66 static QIOSIntegration *instance();
67
68 // -- QPlatformNativeInterface --
69
70 void *nativeResourceForWindow(const QByteArray &resource, QWindow *window) override;
71
72 QFactoryLoader *optionalPlugins() { return m_optionalPlugins; }
73
75
76private:
77 QPlatformFontDatabase *m_fontDatabase;
78#ifndef Q_OS_TVOS
79 QPlatformClipboard *m_clipboard;
80#endif
81 QPlatformInputContext *m_inputContext;
82 QPointingDevice *m_touchDevice;
83 QIOSServices *m_platformServices;
84 mutable QPlatformAccessibility *m_accessibility;
85 QFactoryLoader *m_optionalPlugins;
86#ifndef Q_OS_TVOS
87 QIOSTextInputOverlay m_textInputOverlay;
88#endif
89};
90
92
93#endif
\inmodule QtCore
Definition qbytearray.h:57
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()
QPlatformClipboard * clipboard() const override
Accessor for the platform integration's clipboard.
QPlatformOffscreenSurface * createPlatformOffscreenSurface(QOffscreenSurface *surface) const override
Factory function for QOffscreenSurface.
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.
\inmodule QtGui
\inmodule QtGui
The QPlatformBackingStore class provides the drawing area for top-level windows.
The QPlatformClipboard class provides an abstraction for the system clipboard.
The QPlatformFontDatabase class makes it possible to customize how fonts are discovered and how they ...
The QPlatformInputContext class abstracts the input method dependent data and composing state.
The QPlatformIntegration class is the entry for WindowSystem specific functionality.
virtual QPlatformOpenGLContext * createPlatformOpenGLContext(QOpenGLContext *context) const
Factory function for QPlatformOpenGLContext.
Capability
Capabilities are used to determine specific features of a platform integration.
The QPlatformNativeInterface class provides an abstraction for retrieving native resource handles.
The QPlatformOpenGLContext class provides an abstraction for native GL contexts.
The QPlatformServices provides the backend for desktop-related functionality.
The QPlatformTheme class allows customizing the UI based on themes.
The QPlatformWindow class provides an abstraction for top-level windows.
The QPointingDevice class describes a device from which mouse, touch or tablet events originate.
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
\inmodule QtCore
Definition qvariant.h:64
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
static void * context
GLuint name
GLenum cap
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)
#define Q_OBJECT
long long qint64
Definition qtypes.h:55
aWidget window() -> setWindowTitle("New Window Title")
[2]