Don't die on opendir() failure. Index .mp2 files too.
[kugel-rb.git] / apps / recorder / widgets.h
blob44d849b6282723c18067a149bfe1cc84d953cedd
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id: not checked in
10 * Copyright (C) 2002 Markus Braun
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.
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
18 ****************************************************************************/
19 #ifndef __WIDGETS_H__
20 #define __WIDGETS_H__
21 #include <lcd.h>
23 #ifdef HAVE_LCD_BITMAP
24 /* Directions for progressbar and slidebar */
25 enum {
26 Grow_Right = 0,
27 Grow_Left,
28 Grow_Down,
29 Grow_Up
32 /* Orientation for scrollbar */
33 enum {
34 VERTICAL = 0,
35 HORIZONTAL
38 extern void scrollbar(int x, int y, int width, int height, int items, int min_shown, int max_shown, int orientation);
39 extern void checkbox(int x, int y, int width, int height, bool checked);
40 #endif /* HAVE_LCD_BITMAP */
41 #endif /* __WIDGETS_H__ */