Lifetime
| Category | class |
| Type | hime_lifetime_t |
Initialize runtime and message loop.
Constructors
hime_lifetime_t hime_lifetime_create() win
Create a Lifetime instance for current thread.
Return
hime_lifetime_thime_lifetime_t hime_lifetime_create(argc, argv) mac linux
Create a Lifetime instance for current thread.
Parameters
intargcconst char**argv
Return
hime_lifetime_tClass methods
hime_lifetime_t hime_lifetime_get_current()
Return the Lifetime instance in current thread.
Return
hime_lifetime_tMethods
int hime_lifetime_run_main(self)
Enter message loop.
Parameters
hime_lifetime_tself
Return
intvoid hime_lifetime_quit(self)
Quit message loop.
Parameters
hime_lifetime_tself
Return
voidEvents
void hime_lifetime_on_ready()
Emitted when it is ready to create GUI.
Preventable
No.