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
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
4#ifndef QPLATFORMINTEGRATION_DIRECTFB_H
5#define QPLATFORMINTEGRATION_DIRECTFB_H
6
7#include "qdirectfbinput.h"
8#include "qdirectfbscreen.h"
9
10#include <qpa/qplatformintegration.h>
11#include <qpa/qplatformnativeinterface.h>
12#include <directfb.h>
13#include <directfb_version.h>
14
16
17class QThread;
19
21{
22public:
25
26 void connectToDirectFb();
27
28 bool hasCapability(Capability cap) const override;
33
34 QPlatformFontDatabase *fontDatabase() const override;
35 QPlatformServices *services() const override;
38
39protected:
40 virtual void initializeDirectFB();
41 virtual void initializeScreen();
42 virtual void initializeInput();
43
44protected:
45 QDirectFBPointer<IDirectFB> m_dfb;
46 QScopedPointer<QDirectFbScreen> m_primaryScreen;
47 QScopedPointer<QDirectFbInput> m_input;
48 QScopedPointer<QThread> m_inputRunner;
49 QScopedPointer<QPlatformFontDatabase> m_fontDb;
50 QScopedPointer<QPlatformServices> m_services;
52};
53
55
56#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
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 QPlatformPixmap class provides an abstraction for native pixmaps.
The QPlatformServices provides the backend for desktop-related functionality.
The QPlatformWindow class provides an abstraction for top-level windows.
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
GLenum type
GLenum cap
aWidget window() -> setWindowTitle("New Window Title")
[2]