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.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/gui/list.h b/apps/gui/list.h
index 9107bf0591..f860e27bf9 100644
--- a/apps/gui/list.h
+++ b/apps/gui/list.h
@@ -102,9 +102,7 @@ struct gui_synclist
102 int selected_size; 102 int selected_size;
103 /* the number of pixels each line occupies (including optional padding on touchscreen */ 103 /* the number of pixels each line occupies (including optional padding on touchscreen */
104 int line_height[NB_SCREENS]; 104 int line_height[NB_SCREENS];
105#ifdef HAVE_LCD_BITMAP
106 int offset_position[NB_SCREENS]; /* the list's screen scroll placement in pixels */ 105 int offset_position[NB_SCREENS]; /* the list's screen scroll placement in pixels */
107#endif
108 long scheduled_talk_tick, last_talked_tick, dirty_tick; 106 long scheduled_talk_tick, last_talked_tick, dirty_tick;
109 107
110 list_get_icon *callback_get_item_icon; 108 list_get_icon *callback_get_item_icon;
@@ -127,14 +125,12 @@ struct gui_synclist
127}; 125};
128 126
129 127
130#ifdef HAVE_LCD_BITMAP
131extern void list_init(void); 128extern void list_init(void);
132/* parse global setting to static int */ 129/* parse global setting to static int */
133extern void gui_list_screen_scroll_step(int ofs); 130extern void gui_list_screen_scroll_step(int ofs);
134 131
135/* parse global setting to static bool */ 132/* parse global setting to static bool */
136extern void gui_list_screen_scroll_out_of_view(bool enable); 133extern void gui_list_screen_scroll_out_of_view(bool enable);
137#endif /* HAVE_LCD_BITMAP */
138 134
139extern void gui_synclist_init( 135extern void gui_synclist_init(
140 struct gui_synclist * lists, 136 struct gui_synclist * lists,
@@ -179,7 +175,7 @@ extern bool gui_synclist_keyclick_callback(int action, void* data);
179extern bool gui_synclist_do_button(struct gui_synclist * lists, 175extern bool gui_synclist_do_button(struct gui_synclist * lists,
180 int *action, 176 int *action,
181 enum list_wrap); 177 enum list_wrap);
182#if defined(HAVE_LCD_BITMAP) && !defined(PLUGIN) 178#if !defined(PLUGIN)
183struct listitem_viewport_cfg { 179struct listitem_viewport_cfg {
184 struct wps_data *data; 180 struct wps_data *data;
185 OFFSETTYPE(char *) label; 181 OFFSETTYPE(char *) label;
@@ -204,7 +200,7 @@ enum themable_icons skinlist_get_item_icon(int offset, bool wrap);
204bool skinlist_needs_scrollbar(enum screen_type screen); 200bool skinlist_needs_scrollbar(enum screen_type screen);
205void skinlist_get_scrollbar(int* nb_item, int* first_shown, int* last_shown); 201void skinlist_get_scrollbar(int* nb_item, int* first_shown, int* last_shown);
206int skinlist_get_line_count(enum screen_type screen, struct gui_synclist *list); 202int skinlist_get_line_count(enum screen_type screen, struct gui_synclist *list);
207#endif 203#endif /* !PLUGIN) */
208 204
209#if defined(HAVE_TOUCHSCREEN) 205#if defined(HAVE_TOUCHSCREEN)
210/* this needs to be fixed if we ever get more than 1 touchscreen on a target */ 206/* this needs to be fixed if we ever get more than 1 touchscreen on a target */