Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
QBsdMousePlugin
Definition
main.cpp:10
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
generic
bsdmouse
qbsdmouse.h
Generated on
for Qt by
1.14.0