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// Qt-Security score:significant reason:default
4
5#ifndef QOFFSCREENINTEGRATION_H
6#define QOFFSCREENINTEGRATION_H
7
8#include <qpa/qplatformintegration.h>
9#include <qpa/qplatformnativeinterface.h>
10
11#include <qscopedpointer.h>
12#include <qjsonobject.h>
13
15
16class QOffscreenBackendData;
18
20{
21public:
22 QOffscreenIntegration(const QStringList& paramList);
24
26 std::optional<QJsonObject> resolveConfigFileConfiguration(const QStringList& paramList) const;
27 void setConfiguration(const QJsonObject &configuration);
29
30 void initialize() override;
31 bool hasCapability(QPlatformIntegration::Capability cap) const override;
32
33 QPlatformWindow *createPlatformWindow(QWindow *window) const override;
34 QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const override;
35#if QT_CONFIG(draganddrop)
37#endif
38
39 QPlatformInputContext *inputContext() const override;
40 QPlatformServices *services() const override;
41
42 QPlatformFontDatabase *fontDatabase() const override;
44
46
47 QStringList themeNames() const override;
48 QPlatformTheme *createPlatformTheme(const QString &name) const override;
49
50 static QOffscreenIntegration *createOffscreenIntegration(const QStringList& paramList);
51
53protected:
55#if QT_CONFIG(draganddrop)
57#endif
64};
65
66QT_END_NAMESPACE
67
68#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.
Combined button and popup list for selecting options.