Krita Source Code Documentation
Loading...
Searching...
No Matches
kis_speed_smoother.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2015 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef __KIS_SPEED_SMOOTHER_H
8#define __KIS_SPEED_SMOOTHER_H
9
10#include <QScopedPointer>
11
12class QPointF;
13
14
16{
17public:
20
21 qreal lastSpeed() const;
22 qreal getNextSpeed(const QPointF &pt, ulong timestamp);
23 void clear();
24
25 void updateSettings();
26
27private:
28 qreal getNextSpeedImpl(const QPointF &pt, qreal time);
29private:
30 struct Private;
31 const QScopedPointer<Private> m_d;
32};
33
34#endif /* __KIS_SPEED_SMOOTHER_H */
qreal getNextSpeed(const QPointF &pt, ulong timestamp)
qreal getNextSpeedImpl(const QPointF &pt, qreal time)
const QScopedPointer< Private > m_d