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
qoffscreenintegration.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 QOFFSCREENINTEGRATION_H
5#define QOFFSCREENINTEGRATION_H
6
7#include <qpa/qplatformintegration.h>
8#include <qpa/qplatformnativeinterface.h>
9
10#include <qscopedpointer.h>
11#include <qjsonobject.h>
12
14
15class QOffscreenBackendData;
17
19{
20public:
21 QOffscreenIntegration(const QStringList& paramList);
23
25 std::optional<QJsonObject> resolveConfigFileConfiguration(const QStringList& paramList) const;
26 void setConfiguration(const QJsonObject &configuration);
28
29 void initialize() override;
30 bool hasCapability(QPlatformIntegration::Capability cap) const override;
31
32 QPlatformWindow *createPlatformWindow(QWindow *window) const override;
33 QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const override;
34#if QT_CONFIG(draganddrop)
36#endif
37
38 QPlatformInputContext *inputContext() const override;
39 QPlatformServices *services() const override;
40
41 QPlatformFontDatabase *fontDatabase() const override;
43
45
46 QStringList themeNames() const override;
47 QPlatformTheme *createPlatformTheme(const QString &name) const override;
48
49 static QOffscreenIntegration *createOffscreenIntegration(const QStringList& paramList);
50
52protected:
54#if QT_CONFIG(draganddrop)
56#endif
63};
64
65QT_END_NAMESPACE
66
67#endif
QList< QOffscreenScreen * > m_screens
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
QScopedPointer< QPlatformNativeInterface > m_nativeInterface
QScopedPointer< QPlatformInputContext > m_inputContext
std::optional< QJsonObject > resolveConfigFileConfiguration(const QStringList &paramList) const
void initialize() override
Performs initialization steps that depend on having an event dispatcher available.
QList< QOffscreenScreen * > screens() const
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
QJsonObject configuration() const
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
QPlatformTheme * createPlatformTheme(const QString &name) const override
QPlatformInputContext * inputContext() const override
Returns the platforms input context.
QOffscreenIntegration(const QStringList &paramList)
QScopedPointer< QPlatformFontDatabase > m_fontDatabase
QPlatformServices * services() const override
QPlatformNativeInterface * nativeInterface() const override
static QOffscreenIntegration * createOffscreenIntegration(const QStringList &paramList)
bool hasCapability(QPlatformIntegration::Capability cap) const override
QJsonObject defaultConfiguration() const
QStringList themeNames() const override
void setConfiguration(const QJsonObject &configuration)
QScopedPointer< QPlatformServices > m_services
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.