diff options
Diffstat (limited to 'apps/recorder/widgets.c')
-rw-r--r-- | apps/recorder/widgets.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/apps/recorder/widgets.c b/apps/recorder/widgets.c deleted file mode 100644 index f06ac4402f..0000000000 --- a/apps/recorder/widgets.c +++ /dev/null | |||
@@ -1,54 +0,0 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright (C) 2002 Markus Braun | ||
11 | * | ||
12 | * All files in this archive are subject to the GNU General Public License. | ||
13 | * See the file COPYING in the source tree root for full license agreement. | ||
14 | * | ||
15 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | * KIND, either express or implied. | ||
17 | * | ||
18 | ****************************************************************************/ | ||
19 | #include <lcd.h> | ||
20 | #include <limits.h> | ||
21 | #include "scrollbar.h" | ||
22 | |||
23 | #ifdef HAVE_LCD_BITMAP | ||
24 | |||
25 | /* | ||
26 | * Print a scroll bar | ||
27 | */ | ||
28 | void scrollbar(int x, int y, int width, int height, int items, int min_shown, | ||
29 | int max_shown, int orientation) | ||
30 | { | ||
31 | gui_scrollbar_draw(&screens[SCREEN_MAIN],x,y,width,height, | ||
32 | items,min_shown, max_shown, orientation); | ||
33 | } | ||
34 | |||
35 | /* | ||
36 | * Print a checkbox | ||
37 | */ | ||
38 | void checkbox(int x, int y, int width, int height, bool checked) | ||
39 | { | ||
40 | /* draw box */ | ||
41 | lcd_drawrect(x, y, width, height); | ||
42 | |||
43 | /* clear inner area */ | ||
44 | lcd_set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID); | ||
45 | lcd_fillrect(x + 1, y + 1, width - 2, height - 2); | ||
46 | lcd_set_drawmode(DRMODE_SOLID); | ||
47 | |||
48 | if (checked){ | ||
49 | lcd_drawline(x + 2, y + 2, x + width - 2 - 1 , y + height - 2 - 1); | ||
50 | lcd_drawline(x + 2, y + height - 2 - 1, x + width - 2 - 1, y + 2); | ||
51 | } | ||
52 | } | ||
53 | |||
54 | #endif | ||