GUI: IconAnimation API.
More...
#include <stdint.h>
#include <stdbool.h>
#include <gui/icon.h>
Go to the source code of this file.
◆ IconAnimationCallback
typedef void(* IconAnimationCallback) (IconAnimation *instance, void *context) |
Icon Animation Callback.
Used for update notification
◆ icon_animation_alloc()
Allocate icon animation instance with const icon data.
always returns Icon or stops system if not enough memory
- Parameters
-
[in] | icon | pointer to Icon data |
- Returns
- IconAnimation instance
◆ icon_animation_free()
Release icon animation instance.
- Parameters
-
instance | IconAnimation instance |
◆ icon_animation_get_height()
uint8_t icon_animation_get_height |
( |
const IconAnimation * | instance | ) |
|
Get icon animation height.
- Parameters
-
instance | IconAnimation instance |
- Returns
- height in pixels
◆ icon_animation_get_width()
uint8_t icon_animation_get_width |
( |
const IconAnimation * | instance | ) |
|
Get icon animation width.
- Parameters
-
instance | IconAnimation instance |
- Returns
- width in pixels
◆ icon_animation_is_last_frame()
bool icon_animation_is_last_frame |
( |
const IconAnimation * | instance | ) |
|
Returns true if current frame is a last one.
- Parameters
-
instance | IconAnimation instance |
- Returns
- true if last frame
◆ icon_animation_set_update_callback()
Set IconAnimation update callback.
Normally you do not need to use this function, use view_tie_icon_animation instead.
- Parameters
-
| instance | IconAnimation instance |
[in] | callback | IconAnimationCallback |
| context | callback context |
◆ icon_animation_start()
Start icon animation.
- Parameters
-
instance | IconAnimation instance |
◆ icon_animation_stop()
Stop icon animation.
- Parameters
-
instance | IconAnimation instance |