mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-27 06:50:21 +00:00
d3ff787864
* GUI: abolish API injection into instances. Update usage by 3rd party apps. * GUI: update documentation. Cleanup api usage. Adjust status bar item spacing.
43 lines
671 B
C
43 lines
671 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <stdbool.h>
|
|
|
|
typedef struct IconData IconData;
|
|
typedef struct Icon Icon;
|
|
|
|
/*
|
|
* Allocate icon instance with const icon data.
|
|
* always returns Icon or stops system if not enough memory
|
|
*/
|
|
Icon* icon_alloc(const IconData* data);
|
|
|
|
/*
|
|
* Release icon instance
|
|
*/
|
|
void icon_free(Icon* icon);
|
|
|
|
/*
|
|
* Get icon width
|
|
*/
|
|
uint8_t icon_get_width(Icon* icon);
|
|
|
|
/*
|
|
* Get icon height
|
|
*/
|
|
uint8_t icon_get_height(Icon* icon);
|
|
|
|
/*
|
|
* Check if icon is animated
|
|
*/
|
|
bool icon_is_animated(Icon* icon);
|
|
|
|
/*
|
|
* Start icon animation
|
|
*/
|
|
void icon_start_animation(Icon* icon);
|
|
|
|
/*
|
|
* Stop icon animation
|
|
*/
|
|
void icon_stop_animation(Icon* icon);
|