only send a Charging Only interface if nothing else is sent
[kugel-rb.git] / apps / gui / scrollbar.h
blob9e60730de0e97d3207df76ef451be5908846101d
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 Kevin Ferrare
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 ****************************************************************************/
20 #ifndef _GUI_SCROLLBAR_H_
21 #define _GUI_SCROLLBAR_H_
22 #include "screen_access.h"
24 #ifdef HAVE_LCD_BITMAP
26 enum orientation {
27 VERTICAL = 0x0000, /* Vertical orientation */
28 HORIZONTAL = 0x0001, /* Horizontal orientation */
29 #ifdef HAVE_LCD_COLOR
30 FOREGROUND = 0x0002, /* Do not clear background pixels */
31 INNER_FILL = 0x0004, /* Fill inner part even if FOREGROUND */
32 INNER_BGFILL = 0x0008, /* Fill inner part with background
33 color even if FOREGROUND */
34 INNER_FILL_MASK = 0x000c,
35 #endif
39 * Draws a scrollbar on the given screen
40 * - screen : the screen to put the scrollbar on
41 * - x : x start position of the scrollbar
42 * - y : y start position of the scrollbar
43 * - width : you won't guess =(^o^)=
44 * - height : I won't tell you either !
45 * - items : total number of items on the screen
46 * - min_shown : index of the starting item on the screen
47 * - max_shown : index of the last item on the screen
48 * - orientation : either VERTICAL or HORIZONTAL
50 extern void gui_scrollbar_draw(struct screen * screen, int x, int y,
51 int width, int height, int items,
52 int min_shown, int max_shown,
53 unsigned flags);
54 extern void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x, int y,
55 int width, int height, int items,
56 int min_shown, int max_shown,
57 unsigned flags);
58 extern void show_busy_slider(struct screen *s, int x, int y, int width, int height);
59 #endif /* HAVE_LCD_BITMAP */
60 #endif /* _GUI_SCROLLBAR_H_ */