11#ifndef KOPOINTEREVENT_H
12#define KOPOINTEREVENT_H
14#include <QSharedPointer>
24#include "kritaflake_export.h"
105 Qt::KeyboardModifiers modifiers()
const;
108 bool isAccepted()
const;
111 bool spontaneous()
const;
114 Qt::MouseButton
button()
const;
117 Qt::MouseButtons
buttons()
const;
120 QPoint globalPos()
const;
130 qreal pressure()
const;
133 qreal rotation()
const;
142 qreal tangentialPressure()
const;
191 bool isTabletEvent()
const;
196 bool isTouchEvent()
const;
201 static bool tabletInputReceived();
204#if (QT_VERSION < QT_VERSION_CHECK(6, 0, 0))
205 static void copyQtPointerEvent(
const QMouseEvent *event, QScopedPointer<QEvent> &dst);
206 static void copyQtPointerEvent(
const QTabletEvent *event, QScopedPointer<QEvent> &dst);
207 static void copyQtPointerEvent(
const QTouchEvent *event, QScopedPointer<QEvent> &dst);
210 static std::optional<QPointF> fetchGlobalPositionFromPointerEvent(QEvent *event);
219 const QScopedPointer<Private>
d;
224 template <
typename Event>
const QScopedPointer< Private > d
QPointF point
The point in document coordinates.
QString button(const QWheelEvent &ev)
QString buttons(const T &ev)
QSharedPointer< QEvent > baseQtEvent