Enumerations | |
enum | gui_app_msg_type_t { GUI_APP_MSG_ONSTART = 0, GUI_APP_MSG_ONRESUME, GUI_APP_MSG_ONPAUSE, GUI_APP_MSG_ONSTOP, GUI_APP_MSG_USER_END } |
Page state notification messages. More... | |
Functions | |
void | gui_app_init (void) |
Initialize application framework. | |
int | gui_app_run (const char *cmd) |
run an app More... | |
int | gui_app_exit (const char *id) |
exit specified app by it's id More... | |
void | gui_app_self_exit (void) |
exit current app | |
bool | gui_app_is_actived (char *id) |
check whether the app is active(or running) More... | |
bool | gui_app_is_page_present (char *id) |
check whether the subpage is present in cur app More... | |
void | gui_app_remove_page (const char *pg_id) |
Remove a subgpage from this app. More... | |
void | gui_app_refr_page (const char *pg_id) |
Refresh subgpage(pause then resume) More... | |
int | gui_app_goback_to_page (const char *pg_id) |
Goback to specified subpage in this app. More... | |
int | gui_app_goback (void) |
Destory current page, and destory app if it's having no page. More... | |
int | gui_app_manual_goback_anim (void) |
Goback current page manual. More... | |
void | gui_app_cleanup (void) |
Close all app. More... | |
void | gui_app_cleanup_bg_apps (void) |
Close all background app. More... | |
void | gui_app_cleanup_now (void) |
Close all app synchronously, must been call while all gui app task is NOT running. More... | |
void | gui_app_run_now (const char *cmd) |
Run app immediately, no animation. More... | |
bool | gui_app_is_all_closed (void) |
Check whether all app has been closed. More... | |
intent_t | gui_app_get_intent (void) |
Get current actived app's intent. More... | |
void * | gui_app_get_page_userdata (const char *pg_id) |
Get subpage's user data. More... | |
int | gui_app_set_page_userdata (const char *pg_id, void *usr_data) |
Set subpage's user data. More... | |
void * | gui_app_this_page_userdata (void) |
Get current subpage's user data. More... | |
uint32_t | gui_app_get_running_apps (void) |
Get all runing apps numbers . More... | |
lv_obj_t * | gui_app_get_clock_parent () |
Get current clock parent . More... | |
void | gui_app_exec_now (void) |
Execute gui app schedule immediately util finish all job. . More... | |
int | gui_app_fwk_suspend (void) |
suspend gui_app framework asynchronized, append 'gui_app_exec_now' after if you want suspend synchronized. More... | |
int | gui_app_fwk_resume (void) |
resume gui_app framework asynchronized More... | |
enum gui_app_msg_type_t |
Page state notification messages.
Messages be send to page's msg handler by firmware while page's state changed
void gui_app_cleanup | ( | void | ) |
Close all app.
void |
void gui_app_cleanup_bg_apps | ( | void | ) |
Close all background app.
void |
void gui_app_cleanup_now | ( | void | ) |
Close all app synchronously, must been call while all gui app task is NOT running.
void |
void gui_app_exec_now | ( | void | ) |
Execute gui app schedule immediately util finish all job.
.
int gui_app_exit | ( | const char * | id | ) |
exit specified app by it's id
[in] | id | The id of app |
RT_EOK | if successful, otherwise return error number < 0. |
int gui_app_fwk_resume | ( | void | ) |
resume gui_app framework asynchronized
int gui_app_fwk_suspend | ( | void | ) |
suspend gui_app framework asynchronized, append 'gui_app_exec_now' after if you want suspend synchronized.
lv_obj_t* gui_app_get_clock_parent | ( | ) |
Get current clock parent
.
intent_t gui_app_get_intent | ( | void | ) |
Get current actived app's intent.
void* gui_app_get_page_userdata | ( | const char * | pg_id | ) |
Get subpage's user data.
pg_id | - Subpage id (should be unique in app ) |
uint32_t gui_app_get_running_apps | ( | void | ) |
Get all runing apps numbers
.
int gui_app_goback | ( | void | ) |
Destory current page, and destory app if it's having no page.
RT_EOK | if successful, otherwise return error number < 0. |
int gui_app_goback_to_page | ( | const char * | pg_id | ) |
Goback to specified subpage in this app.
[in] | pg_id | Subpage id (should be unique in app ) |
RT_EOK | if pg_id is existent, otherwise return error number < 0. |
bool gui_app_is_actived | ( | char * | id | ) |
check whether the app is active(or running)
[in] | id | Identification of application |
FALSE | - if app is paused, or not even started, TRUE if app is active. |
bool gui_app_is_all_closed | ( | void | ) |
Check whether all app has been closed.
true | all app is closed, false: not closed yet |
bool gui_app_is_page_present | ( | char * | id | ) |
check whether the subpage is present in cur app
[in] | id | Identification of subpage |
FALSE | - if subpage is not started, TRUE if subpage is active, paused, or resumed. |
int gui_app_manual_goback_anim | ( | void | ) |
Goback current page manual.
RT_EOK | if successful, otherwise return error number < 0. |
void gui_app_refr_page | ( | const char * | pg_id | ) |
Refresh subgpage(pause then resume)
[in] | pg_id | Subpage id (should be unique in app ) |
RT_EOK | if successful, otherwise return error number < 0. |
void gui_app_remove_page | ( | const char * | pg_id | ) |
Remove a subgpage from this app.
[in] | pg_id | Subpage id (should be unique in app ) |
RT_EOK | if successful, otherwise return error number < 0. |
int gui_app_run | ( | const char * | cmd | ) |
run an app
[in] | cmd | application command - format:[app_id] [param0] [param1] [param2] ... |
RT_EOK | if successful, otherwise return error number < 0. |
void gui_app_run_now | ( | const char * | cmd | ) |
Run app immediately, no animation.
[in] | cmd | application command - format:[app_id] [param0] [param1] [param2] ... |
void |
int gui_app_set_page_userdata | ( | const char * | pg_id, |
void * | usr_data | ||
) |
Set subpage's user data.
pg_id | - Subpage id (should be unique in app ) |
usr_data | - user data |
void* gui_app_this_page_userdata | ( | void | ) |
Get current subpage's user data.