diff options
| author | Kevin Ferrare <kevin@rockbox.org> | 2005-11-06 14:04:56 +0000 |
|---|---|---|
| committer | Kevin Ferrare <kevin@rockbox.org> | 2005-11-06 14:04:56 +0000 |
| commit | 4caf1ce1851c58505566c0b345bc8cc194c08fb0 (patch) | |
| tree | c31352617f60d3b6b6fc36670489c1d921c766a5 /apps/gui/select.h | |
| parent | ba2062e8bcfb416583b0e05da92783ceec204078 (diff) | |
| download | rockbox-4caf1ce1851c58505566c0b345bc8cc194c08fb0.zip rockbox-4caf1ce1851c58505566c0b345bc8cc194c08fb0.tar.gz rockbox-4caf1ce1851c58505566c0b345bc8cc194c08fb0.tar.bz2 rockbox-4caf1ce1851c58505566c0b345bc8cc194c08fb0.tar.xz | |
Added wrapping on settings when reaching limits and when long key press is enabled
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7763 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/select.h')
| -rw-r--r-- | apps/gui/select.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/apps/gui/select.h b/apps/gui/select.h index 87ecb1c..a584b53 100644 --- a/apps/gui/select.h +++ b/apps/gui/select.h @@ -80,7 +80,6 @@ struct gui_select int max_value; int step; int option; - int nb_decimals; const char * extra_string; /* In the case the option is a number */ void (*formatter)(char* dest, @@ -88,6 +87,7 @@ struct gui_select int variable, const char* unit); const struct opt_items * items; + bool limit_loop; }; /* @@ -183,6 +183,17 @@ extern void gui_select_draw(struct gui_select * select, struct screen * display) (select)->validated /* + * Tells the select wether it should stop when reaching the min/max value + * or should continue (by going to max/min) + * - select : the select struct + * - scroll : + * - true : stops when reaching min/max + * - false : continues to go to max/min when reaching min/max + */ +#define gui_select_limit_loop(select, loop) \ + (select)->limit_loop=loop + +/* * Draws the select on all the screens * - select : the select struct */ |