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
qbsdfbintegration.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 QBSDFBINTEGRATION_H
6#define QBSDFBINTEGRATION_H
7
8#include <qpa/qplatformintegration.h>
9#include <qpa/qplatformnativeinterface.h>
10
11QT_BEGIN_NAMESPACE
12
13class QAbstractEventDispatcher;
14class QBsdFbScreen;
15class QFbVtHandler;
16
18{
19public:
20 explicit QBsdFbIntegration(const QStringList &paramList);
22
23 void initialize() override;
24 bool hasCapability(QPlatformIntegration::Capability cap) const override;
25
26 QPlatformWindow *createPlatformWindow(QWindow *window) const override;
27 QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const override;
28
29 QAbstractEventDispatcher *createEventDispatcher() const override;
30
31 QPlatformFontDatabase *fontDatabase() const override;
32 QPlatformServices *services() const override;
33 QPlatformInputContext *inputContext() const override { return m_inputContext.data(); }
34
36
37 QList<QPlatformScreen *> screens() const;
38
39private:
40 void createInputHandlers();
41
42 QScopedPointer<QBsdFbScreen> m_primaryScreen;
43 QScopedPointer<QPlatformInputContext> m_inputContext;
44 QScopedPointer<QPlatformFontDatabase> m_fontDb;
45 mutable QScopedPointer<QPlatformServices> m_services;
46 QScopedPointer<QFbVtHandler> m_vtHandler;
47 QScopedPointer<QPlatformNativeInterface> m_nativeInterface;
48};
49
50QT_END_NAMESPACE
51
52#endif // QBSDFBINTEGRATION_H
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
void initialize() override
Performs initialization steps that depend on having an event dispatcher available.
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
QPlatformServices * services() const override
QList< QPlatformScreen * > screens() const
QBsdFbIntegration(const QStringList &paramList)
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
bool hasCapability(QPlatformIntegration::Capability cap) const override
QPlatformNativeInterface * nativeInterface() const override
QPlatformInputContext * inputContext() const override
Returns the platforms input context.
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.