1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef HANDWRITINGGESTURERECOGNIZER_P_H
5#define HANDWRITINGGESTURERECOGNIZER_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
18#include <QtVirtualKeyboard/private/gesturerecognizer_p.h>
19
20QT_BEGIN_NAMESPACE
21namespace QtVirtualKeyboard {
22
23class Q_VIRTUALKEYBOARD_EXPORT HandwritingGestureRecognizer : public GestureRecognizer
24{
25 Q_OBJECT
26public:
27 explicit HandwritingGestureRecognizer(QObject *parent = nullptr);
28
29 void setDpi(int dpi);
30 int dpi() const;
31
32 QVariantMap recognize(const QList<QVirtualKeyboardTrace *> traceList) override;
33
34private:
35 int m_dpi;
36};
37
38} // namespace QtVirtualKeyboard
39QT_END_NAMESPACE
40
41#endif // HANDWRITINGGESTURERECOGNIZER_P_H
42

source code of qtvirtualkeyboard/src/virtualkeyboard/handwritinggesturerecognizer_p.h