Loading...
Searching...
No Matches
icon_animation.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <stdint.h>
9#include <stdbool.h>
10#include <gui/icon.h>
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
18
20typedef void (*IconAnimationCallback)(IconAnimation* instance, void* context);
21
31
37
48 IconAnimation* instance,
49 IconAnimationCallback callback,
50 void* context);
51
58uint8_t icon_animation_get_width(const IconAnimation* instance);
59
66uint8_t icon_animation_get_height(const IconAnimation* instance);
67
73
79
87
88#ifdef __cplusplus
89}
90#endif
GUI: Icon API.
void icon_animation_free(IconAnimation *instance)
Release icon animation instance.
Definition icon_animation.c:17
uint8_t icon_animation_get_height(const IconAnimation *instance)
Get icon animation height.
Definition icon_animation.c:64
uint8_t icon_animation_get_width(const IconAnimation *instance)
Get icon animation width.
Definition icon_animation.c:58
void icon_animation_set_update_callback(IconAnimation *instance, IconAnimationCallback callback, void *context)
Set IconAnimation update callback.
Definition icon_animation.c:26
void(* IconAnimationCallback)(IconAnimation *instance, void *context)
Icon Animation Callback.
Definition icon_animation.h:20
IconAnimation * icon_animation_alloc(const Icon *icon)
Allocate icon animation instance with const icon data.
Definition icon_animation.c:6
void icon_animation_stop(IconAnimation *instance)
Stop icon animation.
Definition icon_animation.c:83
bool icon_animation_is_last_frame(const IconAnimation *instance)
Returns true if current frame is a last one.
Definition icon_animation.c:93
void icon_animation_start(IconAnimation *instance)
Start icon animation.
Definition icon_animation.c:70
Definition icon_animation_i.h:12
Definition icon_i.h:9