Skip to main content

Module animation

Module animation 

Source
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_std compatible

§Core Components

  • Anim: Animation definition with start/end values, duration, and easing
  • Easing: Easing functions for smooth animations (integer-based)
  • AnimManager: Manages multiple active animations
  • [AnimCallback]: Callback trait for animation value updates

Structs§

Anim
Animation definition.
AnimInstance
Internal state for an active animation.
AnimManager
Animation manager that handles multiple animations.
AnimOptions
Animation playback options.
AnimStatus
Animations

Enums§

AnimState
Animation playback state.
Easing
Easing functions for animations.

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.