 d1f523687e
			
		
	
	
		d1f523687e
		
			
		
	
	
	
	
		
			
			* dolphin scene draft wip * gui/elements multiline framed text added * zoom poc * item callbacks * engine tweaks * move scenes out of services * improve dolphin gfx selection * glitch hints * dialogue typewriter effect * app loading from scenes app, small action changes, passport app(WIP) * removed passport from main dolphin app, added statusbar * small elements position fixes * fix thread alloc, dolphin and dolphin_scene free functions, other minor issues * sleep emote improvements * Dolpin: fix memory leaks, variable namings and etc Co-authored-by: gornekich <44112859+gornekich@users.noreply.github.com> Co-authored-by: DrZlo13 <who.just.the.doctor@gmail.com> Co-authored-by: あく <alleteam@gmail.com>
		
			
				
	
	
		
			67 lines
		
	
	
		
			986 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			986 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <stdint.h>
 | |
| #include <stdbool.h>
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| 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);
 | |
| 
 | |
| /*
 | |
|  * Check if icon animation is active
 | |
|  */
 | |
| bool icon_is_animating(Icon* icon);
 | |
| 
 | |
| /*
 | |
|  * Start icon animation
 | |
|  */
 | |
| void icon_start_animation(Icon* icon);
 | |
| 
 | |
| /*
 | |
|  * Stop icon animation
 | |
|  */
 | |
| void icon_stop_animation(Icon* icon);
 | |
| 
 | |
| /*
 | |
|  * Get current frame
 | |
|  */
 | |
| uint8_t icon_get_current_frame(Icon* icon);
 | |
| 
 | |
| /*
 | |
|  * Returns true if current frame is a last one
 | |
|  */
 | |
| bool icon_is_last_frame(Icon* icon);
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 |