one_shot_animation_view.h 493 B

1234567891011121314151617
  1. #pragma once
  2. #include <furi.h>
  3. #include <gui/view.h>
  4. #include <stdint.h>
  5. typedef void (*OneShotInteractCallback)(void*);
  6. typedef struct OneShotView OneShotView;
  7. OneShotView* one_shot_view_alloc(void);
  8. void one_shot_view_free(OneShotView* view);
  9. void one_shot_view_set_interact_callback(
  10. OneShotView* view,
  11. OneShotInteractCallback callback,
  12. void* context);
  13. void one_shot_view_start_animation(OneShotView* view, const Icon* icon);
  14. View* one_shot_view_get_view(OneShotView* view);