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
qlinuxfbintegration.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 QLINUXFBINTEGRATION_H
6#define QLINUXFBINTEGRATION_H
7
8#include <qpa/qplatformintegration.h>
9#include <qpa/qplatformnativeinterface.h>
10#include <QtGui/private/qkeymapper_p.h>
11
12QT_BEGIN_NAMESPACE
13
14class QAbstractEventDispatcher;
15class QFbScreen;
16class QFbVtHandler;
18
20#if QT_CONFIG(evdev)
22#endif
23{
24public:
25 QLinuxFbIntegration(const QStringList &paramList);
27
28 void initialize() override;
29 bool hasCapability(QPlatformIntegration::Capability cap) const override;
30
31 QPlatformWindow *createPlatformWindow(QWindow *window) const override;
32 QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const override;
33
34 QAbstractEventDispatcher *createEventDispatcher() const override;
35
36 QPlatformFontDatabase *fontDatabase() const override;
37 QPlatformServices *services() const override;
38 QPlatformInputContext *inputContext() const override { return m_inputContext; }
39
41
42 QList<QPlatformScreen *> screens() const;
43
44 QFunctionPointer platformFunction(const QByteArray &function) const override;
45
46#if QT_CONFIG(evdev)
48 void switchLang() override;
49#endif
50
51private:
52 void createInputHandlers();
53
54 QFbScreen *m_primaryScreen;
55 QPlatformInputContext *m_inputContext;
56 QScopedPointer<QPlatformFontDatabase> m_fontDb;
57 mutable QScopedPointer<QPlatformServices> m_services;
58 QScopedPointer<QFbVtHandler> m_vtHandler;
59
60#if QT_CONFIG(evdev)
62#endif
63};
64
65QT_END_NAMESPACE
66
67#endif // QLINUXFBINTEGRATION_H
QList< QPlatformScreen * > screens() const
void initialize() override
Performs initialization steps that depend on having an event dispatcher available.
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
bool hasCapability(QPlatformIntegration::Capability cap) const override
QFunctionPointer platformFunction(const QByteArray &function) const override
QLinuxFbIntegration(const QStringList &paramList)
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
QPlatformNativeInterface * nativeInterface() const override
QPlatformInputContext * inputContext() const override
Returns the platforms input context.
QPlatformServices * services() const override
Combined button and popup list for selecting options.