Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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;
28
29 void initialize() override;
31
34#if QT_CONFIG(draganddrop)
35 QPlatformDrag *drag() const override;
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
50
51 QList<QOffscreenScreen *> screens() const;
52protected:
53 QScopedPointer<QPlatformFontDatabase> m_fontDatabase;
54#if QT_CONFIG(draganddrop)
55 QScopedPointer<QPlatformDrag> m_drag;
56#endif
57 QScopedPointer<QPlatformInputContext> m_inputContext;
58 QScopedPointer<QPlatformServices> m_services;
59 mutable QScopedPointer<QPlatformNativeInterface> m_nativeInterface;
60 QList<QOffscreenScreen *> m_screens;
63};
64
66
67#endif
\inmodule QtCore\reentrant
Definition qjsonobject.h:20
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.
The QPlatformBackingStore class provides the drawing area for top-level windows.
The QPlatformDrag class provides an abstraction for drag.
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.
Capability
Capabilities are used to determine specific features of a platform integration.
The QPlatformNativeInterface class provides an abstraction for retrieving native resource handles.
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.
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
GLuint name
GLenum cap
aWidget window() -> setWindowTitle("New Window Title")
[2]