summaryrefslogtreecommitdiff
path: root/apps/gui/list.h
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2012-02-25 02:34:23 +0100
committerFrank Gevaerts <frank@gevaerts.be>2012-02-25 16:43:27 +0100
commitb5cd5ce8a136e49b6c8b9d541a5b4928709a8956 (patch)
treee4fae006e0f11dbeb74881adbb79e379125abffa /apps/gui/list.h
parent7d599b43117dc82eae0e7dbf18290bcf4b73bc28 (diff)
downloadrockbox-b5cd5ce8a136e49b6c8b9d541a5b4928709a8956.zip
rockbox-b5cd5ce8a136e49b6c8b9d541a5b4928709a8956.tar.gz
rockbox-b5cd5ce8a136e49b6c8b9d541a5b4928709a8956.tar.bz2
rockbox-b5cd5ce8a136e49b6c8b9d541a5b4928709a8956.tar.xz
Add %LR and %LC to get at the current row and columm in skinned lists.
This allows list items to be rendered differently depending on their on-screen position, allowing things like gradients or nonlinear alignment Change-Id: I1d9c080f97e83707f0e80f57abc762cb2b94f6ed
Diffstat (limited to 'apps/gui/list.h')
-rw-r--r--apps/gui/list.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/gui/list.h b/apps/gui/list.h
index 41bc436..647b4ea 100644
--- a/apps/gui/list.h
+++ b/apps/gui/list.h
@@ -194,6 +194,8 @@ void skinlist_set_cfg(enum screen_type screen,
struct listitem_viewport_cfg *cfg);
const char* skinlist_get_item_text(int offset, bool wrap, char* buf, size_t buf_size);
int skinlist_get_item_number(void);
+int skinlist_get_item_row(void);
+int skinlist_get_item_column(void);
enum themable_icons skinlist_get_item_icon(int offset, bool wrap);
bool skinlist_needs_scrollbar(enum screen_type screen);
void skinlist_get_scrollbar(int* nb_item, int* first_shown, int* last_shown);