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
qvkkhrdisplayintegration.h
Go to the documentation of this file.
1// Copyright (C) 2021 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_VKKHRDISPLAY_H
5#define QPLATFORMINTEGRATION_VKKHRDISPLAY_H
6
7#include <qpa/qplatformintegration.h>
8#include <qpa/qplatformnativeinterface.h>
9#include <qpa/qplatformscreen.h>
10
12
15class QFbVtHandler;
16
18{
19public:
20 explicit QVkKhrDisplayIntegration(const QStringList &parameters);
22
23 void initialize() override;
24
26 QPlatformFontDatabase *fontDatabase() const override;
27 QPlatformServices *services() const override;
28 QPlatformInputContext *inputContext() const override;
29 QPlatformTheme *createPlatformTheme(const QString &name) const override;
31
36
37 void *nativeResourceForWindow(const QByteArray &resource, QWindow *window) override;
38
39private:
40 static void handleInstanceCreated(QVkKhrDisplayVulkanInstance *, void *);
41 void createInputHandlers();
42
43 mutable QPlatformFontDatabase *m_fontDatabase = nullptr;
44 mutable QPlatformServices *m_services = nullptr;
45 QPlatformInputContext *m_inputContext = nullptr;
46 QFbVtHandler *m_vtHandler = nullptr;
47 QVkKhrDisplayScreen *m_primaryScreen = nullptr;
48};
49
51
52#endif
\inmodule QtCore
Definition qbytearray.h:57
The QPlatformBackingStore class provides the drawing area for top-level windows.
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 QPlatformVulkanInstance class provides an abstraction for Vulkan instances.
The QPlatformWindow class provides an abstraction for top-level windows.
\inmodule QtCore
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
bool hasCapability(QPlatformIntegration::Capability cap) const override
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
QPlatformTheme * createPlatformTheme(const QString &name) const override
QVkKhrDisplayIntegration(const QStringList &parameters)
QPlatformVulkanInstance * createPlatformVulkanInstance(QVulkanInstance *instance) const override
QPlatformServices * services() const override
QPlatformInputContext * inputContext() const override
Returns the platforms input context.
QPlatformNativeInterface * nativeInterface() const override
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
void initialize() override
Performs initialization steps that depend on having an event dispatcher available.
void * nativeResourceForWindow(const QByteArray &resource, QWindow *window) override
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
The QVulkanInstance class represents a native Vulkan instance, enabling Vulkan rendering onto a QSurf...
\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]