22#include "pointerevent.h"
23#include "preferencesdef.h"
24#include "strokeinterpolator.h"
25#include "undoredomanager.h"
27#include "canvascursorpainter.h"
40 void startStroke(PointerEvent::InputType inputType);
47 void updateCanvasCursor();
49 static const qreal FEATHER_MIN;
50 static const qreal FEATHER_MAX;
51 static const qreal WIDTH_MIN;
52 static const qreal WIDTH_MAX;
55 bool isActive()
const override {
return mInterpolator.isActive(); };
62 bool leaveEvent(
QEvent*)
override;
66 void paint(
QPainter& painter,
const QRect& blitRect)
override;
69 void onPreferenceChanged(SETTING setting);
73 QPointF getCurrentPressPixel()
const;
74 QPointF getCurrentPressPoint()
const;
75 QPointF getCurrentPixel()
const;
76 QPointF getCurrentPoint()
const;
82 virtual void stopAdjusting();
85 static bool mQuickSizingEnabled;
86 static bool msIsAdjusting;
89 bool mFirstDraw =
false;
94 qreal mCurrentWidth = 0.0;
95 qreal mCurrentPressure = 0.5;
97 PointerEvent::InputType mCurrentInputType = PointerEvent::Unknown;
106 bool mCanvasCursorEnabled =
false;
virtual bool event(QEvent *e)
QObject * parent() const const
typedef KeyboardModifiers
This is the main undo/redo state structure which is meant to populate whatever states that needs to b...