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
qdirectfbintegration.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 QPLATFORMINTEGRATION_DIRECTFB_H
6#define QPLATFORMINTEGRATION_DIRECTFB_H
7
10
11#include <qpa/qplatformintegration.h>
12#include <qpa/qplatformnativeinterface.h>
13#include <directfb.h>
14#include <directfb_version.h>
15
17
18class QThread;
19class QAbstractEventDispatcher;
20
22{
23public:
26
27 void connectToDirectFb();
28
29 bool hasCapability(Capability cap) const override;
30 QPlatformPixmap *createPlatformPixmap(QPlatformPixmap::PixelType type) const override;
31 QPlatformWindow *createPlatformWindow(QWindow *window) const override;
32 QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const override;
33 QAbstractEventDispatcher *createEventDispatcher() const override;
34
35 QPlatformFontDatabase *fontDatabase() const override;
36 QPlatformServices *services() const override;
37 QPlatformInputContext *inputContext() const override { return m_inputContext; }
39
40protected:
41 virtual void initializeDirectFB();
42 virtual void initializeScreen();
43 virtual void initializeInput();
44
45protected:
53};
54
55QT_END_NAMESPACE
56
57#endif
QScopedPointer< QDirectFbInput > m_input
bool hasCapability(Capability cap) const override
QPlatformInputContext * inputContext() const override
Returns the platforms input context.
QScopedPointer< QDirectFbScreen > m_primaryScreen
QAbstractEventDispatcher * createEventDispatcher() const override
Factory function for the GUI event dispatcher.
QPlatformInputContext * m_inputContext
QPlatformServices * services() const override
QScopedPointer< QThread > m_inputRunner
QPlatformPixmap * createPlatformPixmap(QPlatformPixmap::PixelType type) const override
Factory function for QPlatformPixmap.
QPlatformFontDatabase * fontDatabase() const override
Accessor for the platform integration's fontdatabase.
QPlatformWindow * createPlatformWindow(QWindow *window) const override
Factory function for QPlatformWindow.
QPlatformBackingStore * createPlatformBackingStore(QWindow *window) const override
Factory function for QPlatformBackingStore.
QScopedPointer< QPlatformFontDatabase > m_fontDb
QDirectFBPointer< IDirectFB > m_dfb
QPlatformNativeInterface * nativeInterface() const override
QScopedPointer< QPlatformServices > m_services
#define QT_EGL_BACKEND_CREATE(system, out)
Definition main.cpp:20