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
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
4#ifndef QLINUXFBINTEGRATION_H
5#define QLINUXFBINTEGRATION_H
6
7#include <qpa/qplatformintegration.h>
8#include <qpa/qplatformnativeinterface.h>
9#include <QtGui/private/qkeymapper_p.h>
10
12
14class QFbScreen;
15class QFbVtHandler;
17
19#if QT_CONFIG(evdev)
20 , public QNativeInterface::Private::QEvdevKeyMapper
21#endif
22{
23public:
24 QLinuxFbIntegration(const QStringList &paramList);
26
27 void initialize() override;
29
32
34
35 QPlatformFontDatabase *fontDatabase() const override;
36 QPlatformServices *services() const override;
37 QPlatformInputContext *inputContext() const override { return m_inputContext; }
38
40
41 QList<QPlatformScreen *> screens() const;
42
43 QFunctionPointer platformFunction(const QByteArray &function) const override;
44
45#if QT_CONFIG(evdev)
46 void loadKeymap(const QString &filename) override;
47 void switchLang() override;
48#endif
49
50private:
51 void createInputHandlers();
52
53 QFbScreen *m_primaryScreen;
54 QPlatformInputContext *m_inputContext;
55 QScopedPointer<QPlatformFontDatabase> m_fontDb;
56 QScopedPointer<QPlatformServices> m_services;
57 QScopedPointer<QFbVtHandler> m_vtHandler;
58
59 QEvdevKeyboardManager *m_kbdMgr;
60};
61
63
64#endif // QLINUXFBINTEGRATION_H
\inmodule QtCore
Definition qbytearray.h:57
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
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 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.
GLenum cap
aWidget window() -> setWindowTitle("New Window Title")
[2]