Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qbsdmouse.h
Go to the documentation of this file.
1
// Copyright (C) 2015-2016 Oleksandr Tymoshenko <gonzo@bluezbox.com>
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 QBSDMOUSE_H
5
#define QBSDMOUSE_H
6
7
#include <QString>
8
#include <QScopedPointer>
9
#include <QSocketNotifier>
10
11
#include <
qobject.h
>
12
13
QT_BEGIN_NAMESPACE
14
15
class
QSocketNotifier
;
16
17
class
QBsdMouseHandler
:
public
QObject
18
{
19
Q_OBJECT
20
public
:
21
QBsdMouseHandler
(
const
QString
&
key
,
const
QString
&specification);
22
~QBsdMouseHandler
()
override
;
23
24
private
:
25
void
readMouseData();
26
27
private
:
28
QScopedPointer<QSocketNotifier>
m_notifier;
29
int
m_devFd = -1;
30
int
m_packetSize = 0;
31
int
m_x = 0;
32
int
m_y = 0;
33
int
m_xOffset = 0;
34
int
m_yOffset = 0;
35
Qt::MouseButtons m_buttons =
Qt::NoButton
;
36
};
37
38
QT_END_NAMESPACE
39
40
#endif
// QBSDMOUSE_H
QBsdMouseHandler
Definition
qbsdmouse.h:18
QBsdMouseHandler::~QBsdMouseHandler
~QBsdMouseHandler() override
Definition
qbsdmouse.cpp:85
QObject
\inmodule QtCore
Definition
qobject.h:90
QScopedPointer
\inmodule QtCore
Definition
qscopedpointer.h:71
QSocketNotifier
\inmodule QtCore
Definition
qsocketnotifier.h:14
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:127
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
Qt::NoButton
@ NoButton
Definition
qnamespace.h:56
qobject.h
key
GLuint64 key
Definition
qopengles2ext.h:2268
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:117
qtbase
src
plugins
generic
bsdmouse
qbsdmouse.h
Generated by
1.9.7