diff options
Diffstat (limited to 'apps/gui/list.h')
-rw-r--r-- | apps/gui/list.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/apps/gui/list.h b/apps/gui/list.h index 5658a1cd62..60a3651259 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h | |||
@@ -147,6 +147,11 @@ struct gui_list | |||
147 | /* defines wether the list should stop when reaching the top/bottom | 147 | /* defines wether the list should stop when reaching the top/bottom |
148 | * or should continue (by going to bottom/top) */ | 148 | * or should continue (by going to bottom/top) */ |
149 | bool limit_scroll; | 149 | bool limit_scroll; |
150 | /* wether the text of the whole items of the list have to be | ||
151 | * scrolled or only for the selected item */ | ||
152 | bool scroll_all; | ||
153 | /* the number of lines that are selected at the same time */ | ||
154 | int selected_size; | ||
150 | /* The data that will be passed to the callback function YOU implement */ | 155 | /* The data that will be passed to the callback function YOU implement */ |
151 | void * data; | 156 | void * data; |
152 | }; | 157 | }; |
@@ -162,7 +167,9 @@ struct gui_list | |||
162 | */ | 167 | */ |
163 | extern void gui_list_init(struct gui_list * gui_list, | 168 | extern void gui_list_init(struct gui_list * gui_list, |
164 | list_get_name callback_get_item_name, | 169 | list_get_name callback_get_item_name, |
165 | void * data | 170 | void * data, |
171 | bool scroll_all, | ||
172 | int selected_size | ||
166 | ); | 173 | ); |
167 | 174 | ||
168 | /* | 175 | /* |
@@ -329,7 +336,9 @@ struct gui_synclist | |||
329 | extern void gui_synclist_init( | 336 | extern void gui_synclist_init( |
330 | struct gui_synclist * lists, | 337 | struct gui_synclist * lists, |
331 | list_get_name callback_get_item_name, | 338 | list_get_name callback_get_item_name, |
332 | void * data | 339 | void * data, |
340 | bool scroll_all, | ||
341 | int selected_size | ||
333 | ); | 342 | ); |
334 | extern void gui_synclist_set_nb_items(struct gui_synclist * lists, int nb_items); | 343 | extern void gui_synclist_set_nb_items(struct gui_synclist * lists, int nb_items); |
335 | extern void gui_synclist_set_icon_callback(struct gui_synclist * lists, list_get_icon icon_callback); | 344 | extern void gui_synclist_set_icon_callback(struct gui_synclist * lists, list_get_icon icon_callback); |