A modern Music Player Daemon based on Rockbox open source high quality audio player
libadwaita
audio
rust
zig
deno
mpris
rockbox
mpd
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2005 by Kevin Ferrare
11 *
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
16 *
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
19 *
20 ****************************************************************************/
21
22#ifndef _GUI_OPTION_SELECT_H_
23#define _GUI_OPTION_SELECT_H_
24#include "config.h"
25#include "screen_access.h"
26#include "settings.h"
27
28enum {
29 LIST_ORDER_DESCENDING = 0,
30 LIST_ORDER_ASCENDING = 1,
31};
32
33bool option_screen(const struct settings_list *setting,
34 struct viewport parent[NB_SCREENS],
35 bool use_temp_var, const unsigned char* option_title);
36
37#if defined(HAVE_QUICKSCREEN) || defined(HAVE_RECORDING) || defined(HAVE_TOUCHSCREEN)
38void option_select_next_val(const struct settings_list *setting,
39 bool previous, bool apply);
40#endif
41const char *option_get_valuestring(const struct settings_list *setting,
42 char *buffer, int buf_len,
43 intptr_t temp_var);
44void option_talk_value(const struct settings_list *setting, int value, bool enqueue);
45
46/* only use this for int and bool settings */
47int option_value_as_int(const struct settings_list *setting);
48
49int get_setting_info_for_bar(const struct settings_list *setting, int offset, int *count, int *val);
50#ifdef HAVE_TOUCHSCREEN
51void update_setting_value_from_touch(const struct settings_list *setting, int offset, int selection);
52#endif
53
54#endif /* _GUI_OPTION_SELECT_H_ */