diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-15 19:40:55 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 21:20:13 +0000 |
commit | 092c340a2062fa98b7387fc5fd63578ddae7d0b6 (patch) | |
tree | 98ec96946eeb2ae709cb0528cc6998e21bb9b290 /apps/gui/buttonbar.h | |
parent | 17f7cc92c258bc456a27c3e7c5a19c9409851879 (diff) | |
download | rockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.tar.gz rockbox-092c340a2062fa98b7387fc5fd63578ddae7d0b6.zip |
[1/4] Remove SH support and all archos targets
This removes all code specific to SH targets
Change-Id: I7980523785d2596e65c06430f4638eec74a06061
Diffstat (limited to 'apps/gui/buttonbar.h')
-rw-r--r-- | apps/gui/buttonbar.h | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/apps/gui/buttonbar.h b/apps/gui/buttonbar.h deleted file mode 100644 index 884e3132bf..0000000000 --- a/apps/gui/buttonbar.h +++ /dev/null | |||
@@ -1,85 +0,0 @@ | |||
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_BUTTONBAR_H_ | ||
23 | #define _GUI_BUTTONBAR_H_ | ||
24 | #include "config.h" | ||
25 | #include "button.h" | ||
26 | #include "screen_access.h" | ||
27 | |||
28 | |||
29 | #ifdef HAVE_BUTTONBAR | ||
30 | #define BUTTONBAR_HEIGHT 8 | ||
31 | #define BUTTONBAR_MAX_BUTTONS 3 | ||
32 | #define BUTTONBAR_CAPTION_LENGTH 8 | ||
33 | |||
34 | |||
35 | struct gui_buttonbar | ||
36 | { | ||
37 | char caption[BUTTONBAR_MAX_BUTTONS][BUTTONBAR_CAPTION_LENGTH]; | ||
38 | struct screen * display; | ||
39 | }; | ||
40 | |||
41 | /* | ||
42 | * Initializes the buttonbar | ||
43 | * - buttonbar : the buttonbar | ||
44 | */ | ||
45 | extern void gui_buttonbar_init(struct gui_buttonbar * buttonbar); | ||
46 | |||
47 | /* | ||
48 | * Attach the buttonbar to a screen | ||
49 | * - buttonbar : the buttonbar | ||
50 | * - display : the display to attach the buttonbar | ||
51 | */ | ||
52 | extern void gui_buttonbar_set_display(struct gui_buttonbar * buttonbar, | ||
53 | struct screen * display); | ||
54 | |||
55 | /* | ||
56 | * Set the caption of the items of the buttonbar | ||
57 | * - buttonbar : the buttonbar | ||
58 | * - caption1,2,3 : the first, second and thirds items of the bar | ||
59 | */ | ||
60 | extern void gui_buttonbar_set(struct gui_buttonbar * buttonbar, | ||
61 | const char *caption1, | ||
62 | const char *caption2, | ||
63 | const char *caption3); | ||
64 | |||
65 | /* | ||
66 | * Disable the buttonbar | ||
67 | * - buttonbar : the buttonbar | ||
68 | */ | ||
69 | extern void gui_buttonbar_unset(struct gui_buttonbar * buttonbar); | ||
70 | |||
71 | /* | ||
72 | * Draw the buttonbar on it's attached screen | ||
73 | * - buttonbar : the buttonbar | ||
74 | */ | ||
75 | extern void gui_buttonbar_draw(struct gui_buttonbar * buttonbar); | ||
76 | |||
77 | /* | ||
78 | * Returns true if the buttonbar has something to display, false otherwise | ||
79 | * - buttonbar : the buttonbar | ||
80 | */ | ||
81 | extern bool gui_buttonbar_isset(struct gui_buttonbar * buttonbar); | ||
82 | #else | ||
83 | #define BUTTONBAR_HEIGHT 0 | ||
84 | #endif | ||
85 | #endif /* _GUI_BUTTONBAR_H_ */ | ||