4#ifndef QPLATFORMINTEGRATION_COCOA_H
5#define QPLATFORMINTEGRATION_COCOA_H
20#include <QtCore/QScopedPointer>
21#include <qpa/qplatformintegration.h>
22#include <QtGui/private/qcoretextfontdatabase_p.h>
24# include <QtGui/private/qopenglcontext_p.h>
26#include <QtGui/private/qapplekeymapper_p.h>
34 ,
public QNativeInterface::Private::QCocoaGLIntegration
67#if QT_CONFIG(sessionmanager)
74#if QT_CONFIG(accessibility)
75 QCocoaAccessibility *accessibility()
const override;
77#ifndef QT_NO_CLIPBOARD
92 void beep()
const override;
93 void quit()
const override;
96 void focusWindowChanged(
QWindow *);
102 QScopedPointer<QCoreTextFontDatabase> mFontDb;
104 QScopedPointer<QPlatformInputContext> mInputContext;
105#if QT_CONFIG(accessibility)
106 QScopedPointer<QCocoaAccessibility> mAccessibility;
108 QScopedPointer<QPlatformTheme> mPlatformTheme;
109#ifndef QT_NO_CLIPBOARD
112 QScopedPointer<QCocoaDrag> mCocoaDrag;
113 QScopedPointer<QCocoaNativeInterface> mNativeInterface;
114 QScopedPointer<QCocoaServices> mServices;
115 QScopedPointer<QAppleKeyMapper> mKeyboardMapper;
QPlatformWindow * createForeignWindow(QWindow *window, WId nativeHandle) const override
QPlatformBackingStore * createPlatformBackingStore(QWindow *widget) const override
Factory function for QPlatformBackingStore.
QVariant styleHint(StyleHint hint) const override
static QCocoaIntegration * instance()
bool hasCapability(QPlatformIntegration::Capability cap) const override
void setApplicationIcon(const QIcon &icon) const override
QPlatformOpenGLContext * createPlatformOpenGLContext(QOpenGLContext *context) const override
Factory function for QPlatformOpenGLContext.
QCocoaClipboard * clipboard() const override
Accessor for the platform integration's clipboard.
QCocoaServices * services() const override
QCocoaDrag * drag() const override
void quit() const override
void setApplicationBadge(qint64 number) override
QOpenGLContext * createOpenGLContext(NSOpenGLContext *, QOpenGLContext *shareContext) const override
QPlatformOffscreenSurface * createPlatformOffscreenSurface(QOffscreenSurface *surface) const override
Factory function for QOffscreenSurface.
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
void beep() const override
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
QPlatformTheme * createPlatformTheme(const QString &name) const override
QPlatformInputContext * inputContext() const override
Returns the platforms input context.
QCocoaNativeInterface * nativeInterface() const override
QPlatformKeyMapper * keyMapper() const override
Accessor for the platform integration's key mapper.
QCocoaIntegration(const QStringList ¶mList)
QStringList themeNames() const override
QCoreTextFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
The QIcon class provides scalable icons in different modes and states.
The QPlatformInputContext class abstracts the input method dependent data and composing state.
The QPlatformOpenGLContext class provides an abstraction for native GL contexts.
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QVulkanInstance class represents a native Vulkan instance, enabling Vulkan rendering onto a QSurf...
Combined button and popup list for selecting options.
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname)
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
static QT_BEGIN_NAMESPACE QVariant hint(QPlatformIntegration::StyleHint h)