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
qevdevmousemanager_p.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 QEVDEVMOUSEMANAGER_P_H
5#define QEVDEVMOUSEMANAGER_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19
20#include <QtInputSupport/private/devicehandlerlist_p.h>
21
22#include <QObject>
23#include <QHash>
24#include <QSocketNotifier>
25#include <QPoint>
26
28
30
32{
33public:
34 QEvdevMouseManager(const QString &key, const QString &specification, QObject *parent = nullptr);
36
37 void handleMouseEvent(int x, int y, bool abs, Qt::MouseButtons buttons,
39 void handleWheelEvent(QPoint delta);
40
41 void addMouse(const QString &deviceNode = QString());
42 void removeMouse(const QString &deviceNode);
43
44private:
45 void clampPosition();
46 void updateDeviceCount();
47
48 QString m_spec;
50 int m_x;
51 int m_y;
52 int m_xoffset;
53 int m_yoffset;
54};
55
57
58#endif // QEVDEVMOUSEMANAGER_P_H
void addMouse(const QString &deviceNode=QString())
void removeMouse(const QString &deviceNode)
void handleWheelEvent(QPoint delta)
QEvdevMouseManager(const QString &key, const QString &specification, QObject *parent=nullptr)
void handleMouseEvent(int x, int y, bool abs, Qt::MouseButtons buttons, Qt::MouseButton button, QEvent::Type type)
Type
This enum type defines the valid event types in Qt.
Definition qcoreevent.h:51
\inmodule QtCore
Definition qobject.h:103
QObject * parent() const
Returns a pointer to the parent object.
Definition qobject.h:346
\inmodule QtCore\reentrant
Definition qpoint.h:25
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:129
QPushButton * button
[2]
Combined button and popup list for selecting options.
MouseButton
Definition qnamespace.h:56
GLint GLint GLint GLint GLint x
[0]
GLuint64 key
GLenum type
GLint y