Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_touch_shortcut.h
Go to the documentation of this file.
1/*
2 * This file is part of the KDE project
3 * SPDX-FileCopyrightText: 2012 Arjen Hiemstra <ahiemstra@heimr.nl>
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 *
7 */
8
9#ifndef KISTOUCHSHORTCUT_H
10#define KISTOUCHSHORTCUT_H
11
14
15class QTouchEvent;
22{
24
25 public:
27 ~KisTouchShortcut() override;
28
29 int priority() const override;
30
31 void setMinimumTouchPoints( int min );
32 void setMaximumTouchPoints( int max );
33 void setDisableOnTouchPainting(bool disableOnTouchPainting);
34
35 bool matchTapType(QTouchEvent *event);
36 bool matchDragType(QTouchEvent *event);
37 bool matchTouchPoint(QTouchEvent *event);
38
39 private:
40 class Private;
41 Private * const d;
42};
43
44#endif // KISTOUCHSHORTCUT_H
Abstract base class for input actions.
KisAbstractInputAction * action
The KisTouchShortcut class only handles touch gestures it does not handle tool invocation i....
bool matchDragType(QTouchEvent *event)
bool matchTapType(QTouchEvent *event)
KisTouchShortcut(KisAbstractInputAction *action, int index, GestureAction type)
bool matchTouchPoint(QTouchEvent *event)
void setMaximumTouchPoints(int max)
void setDisableOnTouchPainting(bool disableOnTouchPainting)
int priority() const override
void setMinimumTouchPoints(int min)