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 bool isHoldType() const;
31
32 void setMinimumTouchPoints( int min );
33 void setMaximumTouchPoints( int max );
34 void setDisableOnTouchPainting(bool disableOnTouchPainting);
35
36 bool matchTapType(QTouchEvent *event);
37 bool matchDragType(QTouchEvent *event);
38 bool matchHoldType(QTouchEvent *event);
39 bool matchTouchPoint(QTouchEvent *event);
40
41 private:
42 class Private;
43 Private * const d;
44};
45
46#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 matchHoldType(QTouchEvent *event)
bool matchTouchPoint(QTouchEvent *event)
void setMaximumTouchPoints(int max)
void setDisableOnTouchPainting(bool disableOnTouchPainting)
int priority() const override
void setMinimumTouchPoints(int min)