|
Krita Source Code Documentation
|
#include <kis_native_gesture_shortcut.h>
Inheritance diagram for KisNativeGestureShortcut:Classes | |
| class | Private |
Public Types | |
| enum | Type { PinchNavigation , SmartZoomNativeGesture } |
Public Member Functions | |
| KisNativeGestureShortcut (KisAbstractInputAction *action, int index, Type type) | |
| bool | match (QNativeGestureEvent *event) |
| int | priority () const override |
| ~KisNativeGestureShortcut () override | |
Public Member Functions inherited from KisAbstractShortcut | |
| KisAbstractInputAction * | action () const |
| virtual bool | isAvailable (KisInputActionGroupsMask mask) const |
| KisAbstractShortcut (KisAbstractInputAction *action, int index) | |
| void | setAction (KisAbstractInputAction *action) |
| int | shortcutIndex () const |
| virtual | ~KisAbstractShortcut () |
Private Attributes | |
| Private *const | d {nullptr} |
Additional Inherited Members | |
Public Attributes inherited from KisAbstractShortcut | |
| KisAbstractInputAction * | action |
| int | shortcutIndex |
Protected Member Functions inherited from KisAbstractShortcut | |
| bool | compareKeys (const QSet< Qt::Key > &keys1, const QSet< Qt::Key > &keys2) |
Definition at line 14 of file kis_native_gesture_shortcut.h.
| Enumerator | |
|---|---|
| PinchNavigation | |
| SmartZoomNativeGesture | |
Definition at line 17 of file kis_native_gesture_shortcut.h.
| KisNativeGestureShortcut::KisNativeGestureShortcut | ( | KisAbstractInputAction * | action, |
| int | index, | ||
| Type | type ) |
Definition at line 20 of file kis_native_gesture_shortcut.cpp.
References d, and KisNativeGestureShortcut::Private::type.
|
override |
| bool KisNativeGestureShortcut::match | ( | QNativeGestureEvent * | event | ) |
Definition at line 36 of file kis_native_gesture_shortcut.cpp.
References d, PinchNavigation, SmartZoomNativeGesture, and KisNativeGestureShortcut::Private::type.
|
overridevirtual |
The priority of the shortcut. The shortcut with the greatest value will be chosen for execution
Implements KisAbstractShortcut.
Definition at line 31 of file kis_native_gesture_shortcut.cpp.
|
private |
Definition at line 32 of file kis_native_gesture_shortcut.h.