cf::ui::base::Easing¶
Easing curves and spring presets for animations. More...
Classes¶
| Name | |
|---|---|
| struct | cf::ui::base::Easing::SpringPreset Spring physics preset for animations. |
Types¶
| Name | |
|---|---|
| enum class | Type { Emphasized, EmphasizedDecelerate, EmphasizedAccelerate, Standard, StandardDecelerate, StandardAccelerate, Linear} Predefined easing curve types. |
Functions¶
| Name | |
|---|---|
| QEasingCurve | fromEasingType(constType t) Converts an easing type to a QEasingCurve. |
| QEasingCurve | custom(float x1, float y1, float x2, float y2) Creates a custom cubic bezier easing curve. |
| SpringPreset | springGentle() Returns a gentle spring preset. |
| SpringPreset | springBouncy() Returns a bouncy spring preset. |
| SpringPreset | springStiff() Returns a stiff spring preset. |
Detailed Description¶
Easing curves and spring presets for animations.
Provides convenient access to predefined easing curves following Material Design motion principles.
Types Documentation¶
enum Type¶
| Enumerator | Value | Description |
|---|---|---|
| Emphasized | Emphasized easing with acceleration and deceleration. | |
| EmphasizedDecelerate | Emphasized deceleration easing. | |
| EmphasizedAccelerate | Emphasized acceleration easing. | |
| Standard | Standard easing with acceleration and deceleration. | |
| StandardDecelerate | Standard deceleration easing. | |
| StandardAccelerate | Standard acceleration easing. | |
| Linear | Linear easing (no acceleration). |
Predefined easing curve types.
Defines standard easing curves used for animations following Material Design motion specifications.
Functions Documentation¶
function fromEasingType¶
Converts an easing type to a QEasingCurve.
Parameters:
- t The easing type to convert.
Exceptions:
- None
Return: QEasingCurve corresponding to the specified type.
Since: 0.1
Note: None
Warning: None
function custom¶
Creates a custom cubic bezier easing curve.
Parameters:
- x1 First control point X coordinate (0.0 to 1.0).
- y1 First control point Y coordinate.
- x2 Second control point X coordinate (0.0 to 1.0).
- y2 Second control point Y coordinate.
Exceptions:
- None
Return: Custom QEasingCurve with the specified control points.
Since: 0.1
Note: None
Warning: None
function springGentle¶
Returns a gentle spring preset.
Exceptions:
- None
Return: SpringPreset with gentle stiffness and damping.
Since: 0.1
Note: None
Warning: None
function springBouncy¶
Returns a bouncy spring preset.
Exceptions:
- None
Return: SpringPreset with high bounciness.
Since: 0.1
Note: None
Warning: None
function springStiff¶
Returns a stiff spring preset.
Exceptions:
- None
Return: SpringPreset with high stiffness.
Since: 0.1
Note: None
Warning: None
Updated on 2026-03-09 at 10:14:00 +0000