Welcome to mirror list, hosted at ThFree Co, Russian Federation.

icon_animation_i.h « gui « applications - github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 241bcaa3895ca632efc3408b0ccdc652350aad60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/**
 * @file icon_animation_i.h
 * GUI: internal IconAnimation API
 */

#pragma once

#include "icon_animation.h"

#include <furi.h>

struct IconAnimation {
    const Icon* icon;
    uint8_t frame;
    bool animating;
    osTimerId_t timer;
    IconAnimationCallback callback;
    void* callback_context;
};

/** Get pointer to current frame data
 *
 * @param      instance  IconAnimation instance
 *
 * @return     pointer to current frame XBM bitmap data
 */
const uint8_t* icon_animation_get_data(IconAnimation* instance);

/** Advance to next frame
 *
 * @param      instance  IconAnimation instance
 */
void icon_animation_next_frame(IconAnimation* instance);

/** IconAnimation timer callback
 *
 * @param      context  pointer to IconAnimation
 */
void icon_animation_timer_callback(void* context);