2022-02-24 11:59:36 +00:00
|
|
|
#pragma once
|
|
|
|
#include <gui/view.h>
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/** Loading anonymous structure */
|
|
|
|
typedef struct Loading Loading;
|
|
|
|
|
|
|
|
/** Allocate and initialize
|
|
|
|
*
|
|
|
|
* This View used to show system is doing some processing
|
|
|
|
*
|
|
|
|
* @return Loading View instance
|
|
|
|
*/
|
2024-03-19 14:43:52 +00:00
|
|
|
Loading* loading_alloc(void);
|
2022-02-24 11:59:36 +00:00
|
|
|
|
|
|
|
/** Deinitialize and free Loading View
|
|
|
|
*
|
|
|
|
* @param instance Loading instance
|
|
|
|
*/
|
|
|
|
void loading_free(Loading* instance);
|
|
|
|
|
|
|
|
/** Get Loading view
|
|
|
|
*
|
|
|
|
* @param instance Loading instance
|
|
|
|
*
|
|
|
|
* @return View instance that can be used for embedding
|
|
|
|
*/
|
|
|
|
View* loading_get_view(Loading* instance);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|