blob: b472e15ae755eaba0f59259606570aa7c6ee363e (
plain)
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 | // Copyright (C) 2016 The Qt Company Ltd.// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only#ifndef QPLATFORMINTEGRATION_DIRECTFB_H#define QPLATFORMINTEGRATION_DIRECTFB_H#include"qdirectfbinput.h"#include"qdirectfbscreen.h"#include <qpa/qplatformintegration.h>#include <qpa/qplatformnativeinterface.h>#include <directfb.h>#include <directfb_version.h> QT_BEGIN_NAMESPACE class QThread;class QAbstractEventDispatcher;class QDirectFbIntegration :public QPlatformIntegration,public QPlatformNativeInterface {public:QDirectFbIntegration();~QDirectFbIntegration();voidconnectToDirectFb();boolhasCapability(Capability cap)const override; QPlatformPixmap *createPlatformPixmap(QPlatformPixmap::PixelType type)const override; QPlatformWindow *createPlatformWindow(QWindow *window)const override; QPlatformBackingStore *createPlatformBackingStore(QWindow *window)const override; QAbstractEventDispatcher *createEventDispatcher()const override; QPlatformFontDatabase *fontDatabase()const override; QPlatformServices *services()const override; QPlatformInputContext *inputContext()const override {return m_inputContext; } QPlatformNativeInterface *nativeInterface()const override;protected:virtualvoidinitializeDirectFB();virtualvoidinitializeScreen();virtualvoidinitializeInput();protected: QDirectFBPointer<IDirectFB> m_dfb; QScopedPointer<QDirectFbScreen> m_primaryScreen; QScopedPointer<QDirectFbInput> m_input; QScopedPointer<QThread> m_inputRunner; QScopedPointer<QPlatformFontDatabase> m_fontDb;mutable QScopedPointer<QPlatformServices> m_services; QPlatformInputContext *m_inputContext;}; QT_END_NAMESPACE #endif
|