icon_animation_i.h 518 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #include "icon_animation.h"
  3. #include <furi.h>
  4. struct IconAnimation {
  5. const Icon* icon;
  6. uint8_t frame;
  7. bool animating;
  8. osTimerId_t timer;
  9. IconAnimationCallback callback;
  10. void* callback_context;
  11. };
  12. /** Get pointer to current frame data */
  13. const uint8_t* icon_animation_get_data(IconAnimation* instance);
  14. /** Advance to next frame */
  15. void icon_animation_next_frame(IconAnimation* instance);
  16. /** IconAnimation timer callback */
  17. void icon_animation_timer_callback(void* context);