diff options
Diffstat (limited to 'apps/gui/list.h')
-rw-r--r-- | apps/gui/list.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/apps/gui/list.h b/apps/gui/list.h index 38d7e95f8d..b54e7d7f5b 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "config.h" | 25 | #include "config.h" |
26 | #include "icon.h" | 26 | #include "icon.h" |
27 | #include "screen_access.h" | 27 | #include "screen_access.h" |
28 | #include "skin_engine/skin_engine.h" | ||
28 | 29 | ||
29 | #define SCROLLBAR_WIDTH global_settings.scrollbar_width | 30 | #define SCROLLBAR_WIDTH global_settings.scrollbar_width |
30 | 31 | ||
@@ -173,6 +174,27 @@ extern bool gui_synclist_item_is_onscreen(struct gui_synclist *lists, | |||
173 | extern bool gui_synclist_do_button(struct gui_synclist * lists, | 174 | extern bool gui_synclist_do_button(struct gui_synclist * lists, |
174 | int *action, | 175 | int *action, |
175 | enum list_wrap); | 176 | enum list_wrap); |
177 | #if defined(HAVE_LCD_BITMAP) && !defined(PLUGIN) | ||
178 | struct listitem_viewport_cfg { | ||
179 | struct wps_data *data; | ||
180 | char* label; | ||
181 | int width; | ||
182 | int height; | ||
183 | int xmargin; | ||
184 | int ymargin; | ||
185 | bool tile; | ||
186 | struct skin_viewport selected_item_vp; | ||
187 | }; | ||
188 | bool skinlist_draw(struct screen *display, struct gui_synclist *list); | ||
189 | bool skinlist_is_selected_item(void); | ||
190 | void skinlist_set_cfg(enum screen_type screen, | ||
191 | struct listitem_viewport_cfg *cfg); | ||
192 | const char* skinlist_get_item_text(void); | ||
193 | enum themable_icons skinlist_get_item_icon(void); | ||
194 | bool skinlist_needs_scrollbar(enum screen_type screen); | ||
195 | void skinlist_get_scrollbar(int* nb_item, int* first_shown, int* last_shown); | ||
196 | int skinlist_get_line_count(enum screen_type screen, struct gui_synclist *list); | ||
197 | #endif | ||
176 | 198 | ||
177 | #if defined(HAVE_TOUCHSCREEN) | 199 | #if defined(HAVE_TOUCHSCREEN) |
178 | /* this needs to be fixed if we ever get more than 1 touchscreen on a target */ | 200 | /* this needs to be fixed if we ever get more than 1 touchscreen on a target */ |