summaryrefslogtreecommitdiff
path: root/apps/gui/list.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2011-09-11 10:44:17 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2011-09-11 10:44:17 +0000
commit3d0317a273a99f277d88c491181ba220db9dd2b0 (patch)
tree53f10f49995065ec24aa5656d5c01dd76b8f88e1 /apps/gui/list.h
parent93a600fdab817ccfc2c8f9301d9190aed3552ad6 (diff)
downloadrockbox-3d0317a273a99f277d88c491181ba220db9dd2b0.tar.gz
rockbox-3d0317a273a99f277d88c491181ba220db9dd2b0.zip
Rework how the skin gets the list item text to save some ram. Also allow the %LI and %LT tags to take 2 optional parameters to get a different items text/icon:
%LT(offset, nowrap) - get the text for the "being drawn"+offset item (offset being + or -). if the second param is "nowrap" (Without quotes) the text will be blank if the item would need to wrap. Same for the icon e.g: %LT(-1) %LT << %LT(1, nowrap) will display: Four Five << Six (or nothing if Five is the last item) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30502 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/list.h')
-rw-r--r--apps/gui/list.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/list.h b/apps/gui/list.h
index b54e7d7f5b..7c64987abb 100644
--- a/apps/gui/list.h
+++ b/apps/gui/list.h
@@ -189,8 +189,8 @@ bool skinlist_draw(struct screen *display, struct gui_synclist *list);
189bool skinlist_is_selected_item(void); 189bool skinlist_is_selected_item(void);
190void skinlist_set_cfg(enum screen_type screen, 190void skinlist_set_cfg(enum screen_type screen,
191 struct listitem_viewport_cfg *cfg); 191 struct listitem_viewport_cfg *cfg);
192const char* skinlist_get_item_text(void); 192const char* skinlist_get_item_text(int offset, bool wrap, char* buf, size_t buf_size);
193enum themable_icons skinlist_get_item_icon(void); 193enum themable_icons skinlist_get_item_icon(int offset, bool wrap);
194bool skinlist_needs_scrollbar(enum screen_type screen); 194bool skinlist_needs_scrollbar(enum screen_type screen);
195void skinlist_get_scrollbar(int* nb_item, int* first_shown, int* last_shown); 195void skinlist_get_scrollbar(int* nb_item, int* first_shown, int* last_shown);
196int skinlist_get_line_count(enum screen_type screen, struct gui_synclist *list); 196int skinlist_get_line_count(enum screen_type screen, struct gui_synclist *list);