Struct qt_core::q_easing_curve::Type
source · pub struct Type(/* private fields */);
Expand description
The type of easing curve.
C++ enum: QEasingCurve::Type
.
The type of easing curve.
See also addCubicBezierSegment() and addTCBSegment().
Implementations§
source§impl Type
impl Type
sourcepub const Linear: Type = _
pub const Linear: Type = _
Easing curve for a linear (t) function: velocity is constant.
(C++ enum variant: ```Linear = 0```)sourcepub const InQuad: Type = _
pub const InQuad: Type = _
Easing curve for a quadratic (t^2) function: accelerating from zero velocity.
(C++ enum variant: ```InQuad = 1```)sourcepub const OutQuad: Type = _
pub const OutQuad: Type = _
Easing curve for a quadratic (t^2) function: decelerating to zero velocity.
(C++ enum variant: ```OutQuad = 2```)sourcepub const InOutQuad: Type = _
pub const InOutQuad: Type = _
Easing curve for a quadratic (t^2) function: acceleration until halfway, then deceleration.
(C++ enum variant: ```InOutQuad = 3```)sourcepub const OutInQuad: Type = _
pub const OutInQuad: Type = _
Easing curve for a quadratic (t^2) function: deceleration until halfway, then acceleration.
(C++ enum variant: ```OutInQuad = 4```)sourcepub const InCubic: Type = _
pub const InCubic: Type = _
Easing curve for a cubic (t^3) function: accelerating from zero velocity.
(C++ enum variant: ```InCubic = 5```)sourcepub const OutCubic: Type = _
pub const OutCubic: Type = _
Easing curve for a cubic (t^3) function: decelerating to zero velocity.
(C++ enum variant: ```OutCubic = 6```)sourcepub const InOutCubic: Type = _
pub const InOutCubic: Type = _
Easing curve for a cubic (t^3) function: acceleration until halfway, then deceleration.
(C++ enum variant: ```InOutCubic = 7```)sourcepub const OutInCubic: Type = _
pub const OutInCubic: Type = _
Easing curve for a cubic (t^3) function: deceleration until halfway, then acceleration.
(C++ enum variant: ```OutInCubic = 8```)sourcepub const InQuart: Type = _
pub const InQuart: Type = _
Easing curve for a quartic (t^4) function: accelerating from zero velocity.
(C++ enum variant: ```InQuart = 9```)sourcepub const OutQuart: Type = _
pub const OutQuart: Type = _
Easing curve for a quartic (t^4) function: decelerating to zero velocity.
(C++ enum variant: ```OutQuart = 10```)sourcepub const InOutQuart: Type = _
pub const InOutQuart: Type = _
Easing curve for a quartic (t^4) function: acceleration until halfway, then deceleration.
(C++ enum variant: ```InOutQuart = 11```)sourcepub const OutInQuart: Type = _
pub const OutInQuart: Type = _
Easing curve for a quartic (t^4) function: deceleration until halfway, then acceleration.
(C++ enum variant: ```OutInQuart = 12```)sourcepub const InQuint: Type = _
pub const InQuint: Type = _
Easing curve for a quintic (t^5) easing in: accelerating from zero velocity.
(C++ enum variant: ```InQuint = 13```)sourcepub const OutQuint: Type = _
pub const OutQuint: Type = _
Easing curve for a quintic (t^5) function: decelerating to zero velocity.
(C++ enum variant: ```OutQuint = 14```)sourcepub const InOutQuint: Type = _
pub const InOutQuint: Type = _
Easing curve for a quintic (t^5) function: acceleration until halfway, then deceleration.
(C++ enum variant: ```InOutQuint = 15```)sourcepub const OutInQuint: Type = _
pub const OutInQuint: Type = _
Easing curve for a quintic (t^5) function: deceleration until halfway, then acceleration.
(C++ enum variant: ```OutInQuint = 16```)sourcepub const InSine: Type = _
pub const InSine: Type = _
Easing curve for a sinusoidal (sin(t)) function: accelerating from zero velocity.
(C++ enum variant: ```InSine = 17```)sourcepub const OutSine: Type = _
pub const OutSine: Type = _
Easing curve for a sinusoidal (sin(t)) function: decelerating to zero velocity.
(C++ enum variant: ```OutSine = 18```)sourcepub const InOutSine: Type = _
pub const InOutSine: Type = _
Easing curve for a sinusoidal (sin(t)) function: acceleration until halfway, then deceleration.
(C++ enum variant: ```InOutSine = 19```)sourcepub const OutInSine: Type = _
pub const OutInSine: Type = _
Easing curve for a sinusoidal (sin(t)) function: deceleration until halfway, then acceleration.
(C++ enum variant: ```OutInSine = 20```)sourcepub const InExpo: Type = _
pub const InExpo: Type = _
Easing curve for an exponential (2^t) function: accelerating from zero velocity.
(C++ enum variant: ```InExpo = 21```)sourcepub const OutExpo: Type = _
pub const OutExpo: Type = _
Easing curve for an exponential (2^t) function: decelerating to zero velocity.
(C++ enum variant: ```OutExpo = 22```)sourcepub const InOutExpo: Type = _
pub const InOutExpo: Type = _
Easing curve for an exponential (2^t) function: acceleration until halfway, then deceleration.
(C++ enum variant: ```InOutExpo = 23```)sourcepub const OutInExpo: Type = _
pub const OutInExpo: Type = _
Easing curve for an exponential (2^t) function: deceleration until halfway, then acceleration.
(C++ enum variant: ```OutInExpo = 24```)sourcepub const InCirc: Type = _
pub const InCirc: Type = _
Easing curve for a circular (sqrt(1-t^2)) function: accelerating from zero velocity.
(C++ enum variant: ```InCirc = 25```)sourcepub const OutCirc: Type = _
pub const OutCirc: Type = _
Easing curve for a circular (sqrt(1-t^2)) function: decelerating to zero velocity.
(C++ enum variant: ```OutCirc = 26```)sourcepub const InOutCirc: Type = _
pub const InOutCirc: Type = _
Easing curve for a circular (sqrt(1-t^2)) function: acceleration until halfway, then deceleration.
(C++ enum variant: ```InOutCirc = 27```)sourcepub const OutInCirc: Type = _
pub const OutInCirc: Type = _
Easing curve for a circular (sqrt(1-t^2)) function: deceleration until halfway, then acceleration.
(C++ enum variant: ```OutInCirc = 28```)sourcepub const InElastic: Type = _
pub const InElastic: Type = _
Easing curve for an elastic (exponentially decaying sine wave) function: accelerating from zero velocity. The peak amplitude can be set with the amplitude parameter, and the period of decay by the period parameter.
(C++ enum variant: ```InElastic = 29```)sourcepub const OutElastic: Type = _
pub const OutElastic: Type = _
Easing curve for an elastic (exponentially decaying sine wave) function: decelerating to zero velocity. The peak amplitude can be set with the amplitude parameter, and the period of decay by the period parameter.
(C++ enum variant: ```OutElastic = 30```)sourcepub const InOutElastic: Type = _
pub const InOutElastic: Type = _
Easing curve for an elastic (exponentially decaying sine wave) function: acceleration until halfway, then deceleration.
(C++ enum variant: ```InOutElastic = 31```)sourcepub const OutInElastic: Type = _
pub const OutInElastic: Type = _
Easing curve for an elastic (exponentially decaying sine wave) function: deceleration until halfway, then acceleration.
(C++ enum variant: ```OutInElastic = 32```)sourcepub const InBack: Type = _
pub const InBack: Type = _
Easing curve for a back (overshooting cubic function: (s+1)*t^3 - s*t^2) easing in: accelerating from zero velocity.
(C++ enum variant: ```InBack = 33```)sourcepub const OutBack: Type = _
pub const OutBack: Type = _
Easing curve for a back (overshooting cubic function: (s+1)*t^3 - s*t^2) easing out: decelerating to zero velocity.
(C++ enum variant: ```OutBack = 34```)sourcepub const InOutBack: Type = _
pub const InOutBack: Type = _
Easing curve for a back (overshooting cubic function: (s+1)*t^3 - s*t^2) easing in/out: acceleration until halfway, then deceleration.
(C++ enum variant: ```InOutBack = 35```)sourcepub const OutInBack: Type = _
pub const OutInBack: Type = _
Easing curve for a back (overshooting cubic easing: (s+1)*t^3 - s*t^2) easing out/in: deceleration until halfway, then acceleration.
(C++ enum variant: ```OutInBack = 36```)sourcepub const InBounce: Type = _
pub const InBounce: Type = _
Easing curve for a bounce (exponentially decaying parabolic bounce) function: accelerating from zero velocity.
(C++ enum variant: ```InBounce = 37```)sourcepub const OutBounce: Type = _
pub const OutBounce: Type = _
Easing curve for a bounce (exponentially decaying parabolic bounce) function: decelerating from zero velocity.
(C++ enum variant: ```OutBounce = 38```)sourcepub const InOutBounce: Type = _
pub const InOutBounce: Type = _
Easing curve for a bounce (exponentially decaying parabolic bounce) function easing in/out: acceleration until halfway, then deceleration.
(C++ enum variant: ```InOutBounce = 39```)sourcepub const OutInBounce: Type = _
pub const OutInBounce: Type = _
Easing curve for a bounce (exponentially decaying parabolic bounce) function easing out/in: deceleration until halfway, then acceleration.
(C++ enum variant: ```OutInBounce = 40```)sourcepub const CosineCurve: Type = _
pub const CosineCurve: Type = _
C++ enum variant: CosineCurve = 44
sourcepub const BezierSpline: Type = _
pub const BezierSpline: Type = _
Allows defining a custom easing curve using a cubic bezier spline (C++ enum variant: BezierSpline = 45
)
sourcepub const TCBSpline: Type = _
pub const TCBSpline: Type = _
Allows defining a custom easing curve using a TCB spline (C++ enum variant: TCBSpline = 46
)
sourcepub const Custom: Type = _
pub const Custom: Type = _
This is returned if the user specified a custom curve type with setCustomType(). Note that you cannot call setType() with this value, but type() can return it. (C++ enum variant: Custom = 47
)
sourcepub const NCurveTypes: Type = _
pub const NCurveTypes: Type = _
C++ enum variant: NCurveTypes = 48