From b5cd5ce8a136e49b6c8b9d541a5b4928709a8956 Mon Sep 17 00:00:00 2001 From: Frank Gevaerts Date: Sat, 25 Feb 2012 02:34:23 +0100 Subject: 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 --- apps/gui/list.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/gui/list.h') 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); -- cgit v1.1