Qt 6.x
The Qt SDK
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
qdirectfbinput.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 QDIRECTFBINPUT_H
5#define QDIRECTFBINPUT_H
6
7#include <QThread>
8#include <QHash>
9#include <QPoint>
10#include <QEvent>
11
12#include <QtGui/qwindowdefs.h>
13
15
17
18class QDirectFbInput : public QThread
19{
21public:
22 QDirectFbInput(IDirectFB *dfb, IDirectFBDisplayLayer *dfbLayer);
23 void addWindow(IDirectFBWindow *window, QWindow *platformWindow);
24 void removeWindow(IDirectFBWindow *window);
25
26 void stopInputEventLoop();
27
28protected:
29 void run() override;
30
31private:
32 void handleEvents();
33 void handleMouseEvents(const DFBEvent &event);
34 void handleWheelEvent(const DFBEvent &event);
35 void handleKeyEvents(const DFBEvent &event);
36 void handleEnterLeaveEvents(const DFBEvent &event);
37 void handleGotFocusEvent(const DFBEvent &event);
38 void handleCloseEvent(const DFBEvent& event);
39 void handleGeometryEvent(const DFBEvent& event);
40
41
42 IDirectFB *m_dfbInterface;
43 IDirectFBDisplayLayer *m_dfbDisplayLayer;
45
46 bool m_shouldStop;
48};
49
51
52#endif // QDIRECTFBINPUT_H
void removeWindow(IDirectFBWindow *window)
void run() override
void addWindow(IDirectFBWindow *window, QWindow *platformWindow)
\inmodule QtCore
Definition qhash.h:818
\inmodule QtGui
Definition qwindow.h:63
Combined button and popup list for selecting options.
struct _cl_event * event
#define Q_OBJECT
aWidget window() -> setWindowTitle("New Window Title")
[2]