قبلی بعدی ویرایش تغییر نام واگرد Search سرپرستی
| مستندات |
void *GB.Hook ( int type , void *hook )Installs a global interpreter hook.
| Name | Description |
|---|---|
| GB_HOOK_MAIN |
GB.Hook void hook_main ( int *argc, char **argv )This hook is called to parse the command line.
|
| GB_HOOK_LOOP |
GB.Hook int hook_loop ( void )This hook is called to enter the event loop until the program ends. The return value should be the value that must be returned by the program. |
| GB_HOOK_WAIT |
GB.Hook void hook_wait ( long duration )This hook is called to implement the WAIT instruction. You must watch the event loop at most during the number of milliseconds specified by duration, and then return. |
| GB_HOOK_TIMER |
GB.Hook void hook_timer ( GB_TIMER *timer, int enabled )This hook is called to start or stop a timer.
|
| GB_HOOK_LANG |
GB.Hook void hook_lang ( char *lang , int rtl )This hook is called when the current language changes.
|
| GB_HOOK_WATCH |
GB.Hook void hook_watch ( int fd , int type , void *callback , long param )This hook is called to implement the watch of file descriptors.
|
| GB_HOOK_POST |
GB.Hook void hook_post ( void )This hook is called to execute callback functions at the next call of the event loop. |
| GB_HOOK_QUIT |
GB.Hook void hook_quit ( void )This hook is called when the QUIT instruction is used. You should clean and release everything you can. |
| GB_HOOK_ERROR |
GB.Hook void hook_error ( int code , char *error , char *where )This hook is called to display error messages.
|