summaryrefslogtreecommitdiff
path: root/apps/gui/option_select.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/option_select.h')
-rw-r--r--apps/gui/option_select.h42
1 files changed, 0 insertions, 42 deletions
diff --git a/apps/gui/option_select.h b/apps/gui/option_select.h
index 8b43af1e5a..7c9af4409b 100644
--- a/apps/gui/option_select.h
+++ b/apps/gui/option_select.h
@@ -27,48 +27,6 @@ bool option_screen(struct settings_list *setting,
27 struct viewport parent[NB_SCREENS], 27 struct viewport parent[NB_SCREENS],
28 bool use_temp_var, unsigned char* option_title); 28 bool use_temp_var, unsigned char* option_title);
29 29
30struct option_select
31{
32 const char * title;
33 int min_value;
34 int max_value;
35 int option;
36 const struct opt_items * items;
37};
38
39/*
40 * Initializes an option containing a list of choices
41 * - title : the title of the option
42 * - selected : the initially selected item
43 * - items : the list of items, defined in settings.h
44 * - nb_items : the number of items in the 'items' list
45 */
46extern void option_select_init_items(struct option_select * opt,
47 const char * title,
48 int selected,
49 const struct opt_items * items,
50 int nb_items);
51
52/*
53 * Gets the selected option
54 * - opt : the option struct
55 * Returns the selected option
56 */
57extern const char * option_select_get_text(struct option_select * opt);
58
59/*
60 * Selects the next value
61 * - opt : the option struct
62 */
63extern void option_select_next(struct option_select * opt);
64
65/*
66 * Selects the previous value
67 * - opt : the option struct
68 */
69extern void option_select_prev(struct option_select * opt);
70
71
72 30
73void option_select_next_val(struct settings_list *setting, 31void option_select_next_val(struct settings_list *setting,
74 bool previous, bool apply); 32 bool previous, bool apply);