summaryrefslogtreecommitdiff
path: root/apps/gui/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/list.h')
-rw-r--r--apps/gui/list.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/apps/gui/list.h b/apps/gui/list.h
index 2a80298379..914563a597 100644
--- a/apps/gui/list.h
+++ b/apps/gui/list.h
@@ -88,7 +88,9 @@ struct gui_list
88 /* The optional title, set to NULL for none */ 88 /* The optional title, set to NULL for none */
89 char *title; 89 char *title;
90 /* Cache the width of the title string in pixels/characters */ 90 /* Cache the width of the title string in pixels/characters */
91 int title_width; 91 int title_width;
92 /* Optional title icon */
93 ICON title_icon;
92}; 94};
93 95
94/* 96/*
@@ -254,9 +256,12 @@ extern void gui_list_del_item(struct gui_list * gui_list);
254extern void gui_list_flash(struct gui_list * gui_list); 256extern void gui_list_flash(struct gui_list * gui_list);
255 257
256/* 258/*
257 * Set the title of the list, setting to NULL disables the title 259 * Set the title and title icon of the list. Setting title to NULL disables
260 * both the title and icon. Use NOICON if there is no icon.
258 */ 261 */
259extern void gui_list_set_title(struct gui_list *gui_list, char* title); 262extern void gui_list_set_title(struct gui_list *gui_list, char* title,
263 ICON icon);
264
260/* 265/*
261 * This part handles as many lists as there are connected screens 266 * This part handles as many lists as there are connected screens
262 * (the api is similar to the ones above) 267 * (the api is similar to the ones above)
@@ -297,7 +302,8 @@ extern void gui_synclist_add_item(struct gui_synclist * lists);
297extern void gui_synclist_del_item(struct gui_synclist * lists); 302extern void gui_synclist_del_item(struct gui_synclist * lists);
298extern void gui_synclist_limit_scroll(struct gui_synclist * lists, bool scroll); 303extern void gui_synclist_limit_scroll(struct gui_synclist * lists, bool scroll);
299extern void gui_synclist_flash(struct gui_synclist * lists); 304extern void gui_synclist_flash(struct gui_synclist * lists);
300extern void gui_synclist_set_title(struct gui_synclist * lists, char* title); 305extern void gui_synclist_set_title(struct gui_synclist * lists, char * title,
306 ICON icon);
301void gui_synclist_scroll_right(struct gui_synclist * lists); 307void gui_synclist_scroll_right(struct gui_synclist * lists);
302void gui_synclist_scroll_left(struct gui_synclist * lists); 308void gui_synclist_scroll_left(struct gui_synclist * lists);
303 309