Mercurial > mplayer.hg
comparison libmenu/menu_list.h @ 25263:96d0992c7920
Remove hardcoded key->cmd bindings in libmenu, support custom key bindings
by menu config file.
author | ulion |
---|---|
date | Tue, 04 Dec 2007 10:42:59 +0000 |
parents | 476d4922566a |
children | 6ac1ece1f9fe |
comparison
equal
deleted
inserted
replaced
25262:f1922d2b1925 | 25263:96d0992c7920 |
---|---|
36 } menu_list_priv_t; | 36 } menu_list_priv_t; |
37 | 37 |
38 typedef void (*free_entry_t)(list_entry_t* entry); | 38 typedef void (*free_entry_t)(list_entry_t* entry); |
39 | 39 |
40 void menu_list_read_cmd(menu_t* menu,int cmd); | 40 void menu_list_read_cmd(menu_t* menu,int cmd); |
41 void menu_list_read_key(menu_t* menu,int c,int jump_to); | |
42 void menu_list_draw(menu_t* menu,mp_image_t* mpi); | 41 void menu_list_draw(menu_t* menu,mp_image_t* mpi); |
43 void menu_list_add_entry(menu_t* menu,list_entry_t* entry); | 42 void menu_list_add_entry(menu_t* menu,list_entry_t* entry); |
44 void menu_list_init(menu_t* menu); | 43 void menu_list_init(menu_t* menu); |
45 void menu_list_uninit(menu_t* menu,free_entry_t free_func); | 44 void menu_list_uninit(menu_t* menu,free_entry_t free_func); |
46 void menu_list_jump_to_key(menu_t* menu,int c); | 45 int menu_list_jump_to_key(menu_t* menu,int c); |
47 | 46 |
48 extern const menu_list_priv_t menu_list_priv_dflt; | 47 extern const menu_list_priv_t menu_list_priv_dflt; |
49 | 48 |
50 #define MENU_LIST_PRIV_DFLT { \ | 49 #define MENU_LIST_PRIV_DFLT { \ |
51 NULL, \ | 50 NULL, \ |