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
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// Qt-Security score:significant reason:default
4
5#ifndef QPLATFORMINTEGRATION_VKKHRDISPLAY_H
6#define QPLATFORMINTEGRATION_VKKHRDISPLAY_H
7
8#include <qpa/qplatformintegration.h>
9#include <qpa/qplatformnativeinterface.h>
10#include <qpa/qplatformscreen.h>
11
12QT_BEGIN_NAMESPACE
13
14class QVkKhrDisplayScreen;
15class QVkKhrDisplayVulkanInstance;
16class QFbVtHandler;
17
19{
20public:
21 explicit QVkKhrDisplayIntegration(const QStringList &parameters);
23
24 void initialize() override;
25
26 bool hasCapability(QPlatformIntegration::Capability cap) const override;
27 QPlatformFontDatabase *fontDatabase() const override;
28 QPlatformServices *services() const override;
29 QPlatformInputContext *inputContext() const override;
30 QPlatformTheme *createPlatformTheme(const QString &name) const override;
32
33 QPlatformWindow *createPlatformWindow(QWindow *window) const override;
34 QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const override;
36 QPlatformVulkanInstance *createPlatformVulkanInstance(QVulkanInstance *instance) const override;
37
38 void *nativeResourceForWindow(const QByteArray &resource, QWindow *window) override;
39
40private:
41 static void handleInstanceCreated(QVkKhrDisplayVulkanInstance *, void *);
42 void createInputHandlers();
43
44 mutable QPlatformFontDatabase *m_fontDatabase = nullptr;
45 mutable QPlatformServices *m_services = nullptr;
46 QPlatformInputContext *m_inputContext = nullptr;
47 QFbVtHandler *m_vtHandler = nullptr;
48 QVkKhrDisplayScreen *m_primaryScreen = nullptr;
49};
50
51QT_END_NAMESPACE
52
53#endif
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.
Combined button and popup list for selecting options.