22#include "pointerevent.h"
23#include "preferencesdef.h"
24#include "strokeinterpolator.h"
26#include "canvascursorpainter.h"
39 void startStroke(PointerEvent::InputType inputType);
46 void updateCanvasCursor();
48 static const qreal FEATHER_MIN;
49 static const qreal FEATHER_MAX;
50 static const qreal WIDTH_MIN;
51 static const qreal WIDTH_MAX;
54 bool isActive()
const override {
return mInterpolator.isActive(); };
56 bool keyPressEvent(
QKeyEvent* event)
override;
60 bool event(
QEvent *event)
override;
64 void paint(
QPainter& painter,
const QRect& blitRect)
override;
67 void onPreferenceChanged(SETTING setting);
71 QPointF getCurrentPressPixel()
const;
72 QPointF getCurrentPressPoint()
const;
73 QPointF getCurrentPixel()
const;
74 QPointF getCurrentPoint()
const;
80 virtual void stopAdjusting();
83 static bool mQuickSizingEnabled;
84 static bool msIsAdjusting;
87 bool mFirstDraw =
false;
92 qreal mCurrentWidth = 0.0;
93 qreal mCurrentPressure = 0.5;
95 PointerEvent::InputType mCurrentInputType = PointerEvent::Unknown;
104 bool mCanvasCursorEnabled =
false;
QObject * parent() const const
typedef KeyboardModifiers