summaryrefslogtreecommitdiff
path: root/apps/gui/scrollbar.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/scrollbar.h')
-rw-r--r--apps/gui/scrollbar.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/apps/gui/scrollbar.h b/apps/gui/scrollbar.h
new file mode 100644
index 0000000000..51c08352ba
--- /dev/null
+++ b/apps/gui/scrollbar.h
@@ -0,0 +1,49 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2005 Kévin FERRARE
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
20#ifndef _GUI_SCROLLBAR_H_
21#define _GUI_SCROLLBAR_H_
22#include <lcd.h>
23#ifdef HAVE_LCD_BITMAP
24
25struct screen;
26
27enum orientation {
28 VERTICAL,
29 HORIZONTAL
30};
31
32/*
33 * Draws a scrollbar on the given screen
34 * - screen : the screen to put the scrollbar on
35 * - x : x start position of the scrollbar
36 * - y : y start position of the scrollbar
37 * - width : you won't guess =(^o^)=
38 * - height : I won't tell you either !
39 * - items : total number of items on the screen
40 * - min_shown : index of the starting item on the screen
41 * - max_shown : index of the last item on the screen
42 * - orientation : either VERTICAL or HORIZONTAL
43 */
44extern void gui_scrollbar_draw(struct screen * screen, int x, int y,
45 int width, int height, int items,
46 int min_shown, int max_shown,
47 enum orientation orientation);
48#endif /* HAVE_LCD_BITMAP */
49#endif /* _GUI_SCROLLBAR_H_ */