Expand description
Animation subsystem for the matrix_gui framework.
This module provides a lightweight animation system inspired by LVGL 8, designed for immediate-mode embedded GUI applications.
§Features
- Multiple easing functions using integer-only math (no floating point)
- Support for value animations with callbacks
- Animation management with play, pause, stop controls
- Memory-efficient design suitable for embedded systems
no_stdcompatible
§Core Components
Anim: Animation definition with start/end values, duration, and easingEasing: Easing functions for smooth animations (integer-based)AnimManager: Manages multiple active animations- [
AnimCallback]: Callback trait for animation value updates
Structs§
- Anim
- Animation definition.
- Anim
Instance - Internal state for an active animation.
- Anim
Manager - Animation manager that handles multiple animations.
- Anim
Options - Animation playback options.
- Anim
Status - Animations
Enums§
Constants§
- ANIM_
SCALE - Scaling factor for fixed-point calculations. Values are scaled to 0..=ANIM_SCALE range for integer math.
Type Aliases§
- AnimId
- Unique identifier for an animation.