cf::ui::components::material::AnimationDescriptor¶
Animation descriptor structure. More...
#include <cfmaterial_animation_strategy.h>
Public Functions¶
| Name | |
|---|---|
| AnimationDescriptor() =default Default constructor. |
|
| AnimationDescriptor(constchar * type, constchar * motion, constchar * prop, float from, float to, int delay =0) Construct with all fields. |
Public Attributes¶
| Name | |
|---|---|
| constchar * | animationType Animation type: "fade", "slide", "scale", "rotate", "spring". |
| constchar * | motionToken Motion spec token: e.g., "md.motion.shortEnter". |
| constchar * | property Property to animate: "opacity", "positionX", "positionY", "scale". |
| float | fromValue Start value for the animation. |
| float | toValue End value for the animation. |
| int | delayMs Delay before animation starts (milliseconds) |
Detailed Description¶
Animation descriptor structure.
Since: 0.1
Contains all information needed to create an animation:
- Animation type (fade, slide, scale, rotate, spring)
- Motion specification token for timing/easing
- Target property to animate
- Value range
- Optional delay
This structure is passed to AnimationStrategy for potential modification before animation creation.
// Create a fade-in animation descriptor
AnimationDescriptor desc;
desc.animationType = "fade";
desc.motionToken = "md.motion.shortEnter";
desc.property = "opacity";
desc.fromValue = 0.0f;
desc.toValue = 1.0f;
desc.delayMs = 0;
Public Functions Documentation¶
function AnimationDescriptor¶
Default constructor.
Since: 0.1
function AnimationDescriptor¶
inline AnimationDescriptor(
constchar * type,
constchar * motion,
constchar * prop,
float from,
float to,
int delay =0
)
Construct with all fields.
Parameters:
- type Animation type.
- motion Motion spec token.
- prop Property name.
- from Start value.
- to End value.
- delay Delay in milliseconds.
Exceptions:
- None
Since: 0.1
Note: None
Warning: None
Public Attributes Documentation¶
variable animationType¶
Animation type: "fade", "slide", "scale", "rotate", "spring".
variable motionToken¶
Motion spec token: e.g., "md.motion.shortEnter".
variable property¶
Property to animate: "opacity", "positionX", "positionY", "scale".
variable fromValue¶
Start value for the animation.
variable toValue¶
End value for the animation.
variable delayMs¶
Delay before animation starts (milliseconds)
Updated on 2026-03-09 at 10:14:00 +0000