summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/directfb/qdirectfbinput.h
blob: 02175abc7bbd63eb172403f171503d92b7014872 (plain)
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
// 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 QDIRECTFBINPUT_H#define QDIRECTFBINPUT_H#include <QThread>#include <QHash>#include <QPoint>#include <QEvent>#include <QtGui/qwindowdefs.h>#include"qdirectfbconvenience.h" QT_BEGIN_NAMESPACE class QDirectFbInput :public QThread { Q_OBJECT public:QDirectFbInput(IDirectFB *dfb, IDirectFBDisplayLayer *dfbLayer);voidaddWindow(IDirectFBWindow *window, QWindow *platformWindow);voidremoveWindow(IDirectFBWindow *window);voidstopInputEventLoop();protected:voidrun() override;private:voidhandleEvents();voidhandleMouseEvents(const DFBEvent &event);voidhandleWheelEvent(const DFBEvent &event);voidhandleKeyEvents(const DFBEvent &event);voidhandleEnterLeaveEvents(const DFBEvent &event);voidhandleGotFocusEvent(const DFBEvent &event);voidhandleCloseEvent(const DFBEvent& event);voidhandleGeometryEvent(const DFBEvent& event); IDirectFB *m_dfbInterface; IDirectFBDisplayLayer *m_dfbDisplayLayer; QDirectFBPointer<IDirectFBEventBuffer> m_eventBuffer;bool m_shouldStop; QHash<DFBWindowID,QWindow *>m_tlwMap;}; QT_END_NAMESPACE #endif// QDIRECTFBINPUT_H
close