summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qeasingcurve.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/tools/qeasingcurve.h')
-rw-r--r--src/corelib/tools/qeasingcurve.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/corelib/tools/qeasingcurve.h b/src/corelib/tools/qeasingcurve.h
index 2deda2cd1e..a1c11ceba4 100644
--- a/src/corelib/tools/qeasingcurve.h
+++ b/src/corelib/tools/qeasingcurve.h
@@ -52,6 +52,7 @@ QT_BEGIN_NAMESPACE
QT_MODULE(Core)
class QEasingCurvePrivate;
+class QPointF;
class Q_CORE_EXPORT QEasingCurve
{
Q_GADGET
@@ -70,7 +71,7 @@ public:
InBack, OutBack, InOutBack, OutInBack,
InBounce, OutBounce, InOutBounce, OutInBounce,
InCurve, OutCurve, SineCurve, CosineCurve,
- Custom, NCurveTypes
+ BezierSpline, TCBSpline, Custom, NCurveTypes
};
QEasingCurve(Type type = Linear);
@@ -91,6 +92,9 @@ public:
qreal overshoot() const;
void setOvershoot(qreal overshoot);
+ void addCubicBezierSegment(const QPointF & c1, const QPointF & c2, const QPointF & endPoint);
+ void addTCBSegment(const QPointF &nextPoint, qreal t, qreal c, qreal b);
+
Type type() const;
void setType(Type type);
typedef qreal (*EasingFunction)(qreal progress);