PythonQt.QtCore.QEasingCurve · declarations 002
Back to PythonQt.QtCore.QEasingCurve
OutInQuart
instance-attribute
OutInQuart: Any
OutInQuint
instance-attribute
OutInQuint: Any
OutInSine
instance-attribute
OutInSine: Any
OutQuad
instance-attribute
OutQuad: Any
OutQuart
instance-attribute
OutQuart: Any
OutQuint
instance-attribute
OutQuint: Any
OutSine
instance-attribute
OutSine: Any
SineCurve
instance-attribute
SineCurve: Any
TCBSpline
instance-attribute
TCBSpline: Any
addCubicBezierSegment
addCubicBezierSegment(c1: Any, c2: Any, endPoint: Any) -> None
X.addCubicBezierSegment(c1, c2, endPoint)
Supplemental documentation: Qt 5 reference:
void QEasingCurve::addCubicBezierSegment(const QPointF \&c1, const QPointF \&c2, const QPointF \&endPoint)
Adds a segment of a cubic bezier spline to define a custom easing curve. It is only applicable if type() is QEasingCurve::BezierSpline. Note that the spline implicitly starts at (0.0, 0.0) and has to end at (1.0, 1.0) to be a valid easing curve. c1 and c2 are the control points used for drawing the curve. endPoint is the endpoint of the curve.
Upstream PySide2 reference signatures (binding differences may apply):
addCubicBezierSegment(self, c1: PySide2.QtCore.QPointF, c2: PySide2.QtCore.QPointF, endPoint: PySide2.QtCore.QPointF) -> None
Source: https://doc.qt.io/archives/qt-5.15/qeasingcurve.html#addCubicBezierSegment
addTCBSegment
addTCBSegment(nextPoint: Any, t: float, c: float, b: float) -> None
X.addTCBSegment(nextPoint, t, c, b)
Supplemental documentation: Qt 5 reference:
void QEasingCurve::addTCBSegment(const QPointF \&nextPoint, qreal t, qreal c, qreal b)
Adds a segment of a TCB bezier spline to define a custom easing curve. It is only applicable if type() is QEasingCurve::TCBSpline. The spline has to start explicitly at (0.0, 0.0) and has to end at (1.0, 1.0) to be a valid easing curve. The tension t changes the length of the tangent vector. The continuity c changes the sharpness in change between the tangents. The bias b changes the direction of the tangent vector. nextPoint is the sample position. All three parameters are valid between -1 and 1 and define the tangent of the control point. If all three parameters are 0 the resulting spline is a Catmull-Rom spline. The begin and endpoint always have a bias of -1 and 1, since the outer tangent is not defined.
Upstream PySide2 reference signatures (binding differences may apply):
addTCBSegment(self, nextPoint: PySide2.QtCore.QPointF, t: float, c: float, b: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qeasingcurve.html#addTCBSegment
amplitude
amplitude() -> float
X.amplitude() -> float
Supplemental documentation: Qt 5 reference:
qreal QEasingCurve::amplitude() const
Returns the amplitude. This is not applicable for all curve types. It is only applicable for bounce and elastic curves (curves of type() QEasingCurve::InBounce, QEasingCurve::OutBounce, QEasingCurve::InOutBounce, QEasingCurve::OutInBounce, QEasingCurve::InElastic, QEasingCurve::OutElastic, QEasingCurve::InOutElastic or QEasingCurve::OutInElastic).
See also setAmplitude().
Upstream PySide2 reference signatures (binding differences may apply):
amplitude(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qeasingcurve.html#amplitude
operator_assign
operator_assign(other: Any) -> Any
X.operator_assign(other) -> PythonQt.QtCore.QEasingCurve
overshoot
overshoot() -> float
X.overshoot() -> float
Supplemental documentation: Qt 5 reference:
qreal QEasingCurve::overshoot() const
Returns the overshoot. This is not applicable for all curve types. It is only applicable if type() is QEasingCurve::InBack, QEasingCurve::OutBack, QEasingCurve::InOutBack or QEasingCurve::OutInBack.
See also setOvershoot().
Upstream PySide2 reference signatures (binding differences may apply):
overshoot(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qeasingcurve.html#overshoot
period
period() -> float
X.period() -> float
Supplemental documentation: Qt 5 reference:
qreal QEasingCurve::period() const
Returns the period. This is not applicable for all curve types. It is only applicable if type() is QEasingCurve::InElastic, QEasingCurve::OutElastic, QEasingCurve::InOutElastic or QEasingCurve::OutInElastic.
See also setPeriod().
Upstream PySide2 reference signatures (binding differences may apply):
period(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qeasingcurve.html#period
setAmplitude
setAmplitude(amplitude: float) -> None
X.setAmplitude(amplitude)
Supplemental documentation: Qt 5 reference:
void QEasingCurve::setAmplitude(qreal amplitude)
Sets the amplitude to amplitude.
This will set the amplitude of the bounce or the amplitude of the elastic "spring" effect. The higher the number, the higher the amplitude.
See also amplitude().
Upstream PySide2 reference signatures (binding differences may apply):
setAmplitude(self, amplitude: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qeasingcurve.html#setAmplitude
setOvershoot
setOvershoot(overshoot: float) -> None
X.setOvershoot(overshoot)
Supplemental documentation: Qt 5 reference:
void QEasingCurve::setOvershoot(qreal overshoot)
Sets the overshoot to overshoot.
0 produces no overshoot, and the default value of 1.70158 produces an overshoot of 10 percent.
See also overshoot().
Upstream PySide2 reference signatures (binding differences may apply):
setOvershoot(self, overshoot: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qeasingcurve.html#setOvershoot
setPeriod
setPeriod(period: float) -> None
X.setPeriod(period)
Supplemental documentation: Qt 5 reference:
void QEasingCurve::setPeriod(qreal period)
Sets the period to period. Setting a small period value will give a high frequency of the curve. A large period will give it a small frequency.
See also period().
Upstream PySide2 reference signatures (binding differences may apply):
setPeriod(self, period: float) -> None
Source: https://doc.qt.io/archives/qt-5.15/qeasingcurve.html#setPeriod
setType
setType(type: Any) -> None
X.setType(type)
Supplemental documentation: Qt 5 reference:
void QEasingCurve::setType(QEasingCurve::Type type)
Sets the type of the easing curve to type.
See also type().
Upstream PySide2 reference signatures (binding differences may apply):
setType(self, type: PySide2.QtCore.QEasingCurve.Type) -> None
Source: https://doc.qt.io/archives/qt-5.15/qeasingcurve.html#setType
swap
swap(other: Any) -> None
X.swap(other)
Supplemental documentation: Qt 5 reference:
void QEasingCurve::swap(QEasingCurve \&other)
Swaps curve other with this curve. This operation is very fast and never fails.
This function was introduced in Qt 5.0.
Upstream PySide2 reference signatures (binding differences may apply):
swap(self, other: PySide2.QtCore.QEasingCurve) -> None
Source: https://doc.qt.io/archives/qt-5.15/qeasingcurve.html#swap
toCubicSpline
toCubicSpline() -> tuple
X.toCubicSpline() -> tuple
Supplemental documentation: Qt 5 reference:
QVector\<QPointF> QEasingCurve::toCubicSpline() const
Returns the cubicBezierSpline that defines a custom easing curve. If the easing curve does not have a custom bezier easing curve the list is empty.
This function was introduced in Qt 5.0.
Upstream PySide2 reference signatures (binding differences may apply):
toCubicSpline(self) -> typing.List[PySide2.QtCore.QPointF]
Source: https://doc.qt.io/archives/qt-5.15/qeasingcurve.html#toCubicSpline
type
type() -> Any
X.type()
Supplemental documentation: Qt 5 reference:
QEasingCurve::Type QEasingCurve::type() const
Returns the type of the easing curve.
See also setType().
Upstream PySide2 reference signatures (binding differences may apply):
type(self) -> PySide2.QtCore.QEasingCurve.Type
Source: https://doc.qt.io/archives/qt-5.15/qeasingcurve.html#type
valueForProgress
valueForProgress(progress: float) -> float
X.valueForProgress(progress) -> float
Supplemental documentation: Qt 5 reference:
qreal QEasingCurve::valueForProgress(qreal progress) const
Return the effective progress for the easing curve at progress. Whereas progress must be between 0 and 1, the returned effective progress can be outside those bounds. For example, QEasingCurve::InBack will return negative values in the beginning of the function.
Upstream PySide2 reference signatures (binding differences may apply):
valueForProgress(self, progress: float) -> float
Source: https://doc.qt.io/archives/qt-5.15/qeasingcurve.html#valueForProgress