Reorder some operands to increase frequency of multiply early termination on TDMI...
[kugel-rb.git] / apps / gui / scrollbar.h
blobc9b97b268ecd9c3c286554dc9220b3a4811747b6
1 /***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
10 * Copyright (C) 2005 Kevin Ferrare
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.
17 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
18 * KIND, either express or implied.
20 ****************************************************************************/
22 #ifndef _GUI_SCROLLBAR_H_
23 #define _GUI_SCROLLBAR_H_
24 #include "screen_access.h"
26 #ifdef HAVE_LCD_BITMAP
28 enum orientation {
29 VERTICAL = 0x0000, /* Vertical orientation */
30 HORIZONTAL = 0x0001, /* Horizontal orientation */
31 #ifdef HAVE_LCD_COLOR
32 FOREGROUND = 0x0002, /* Do not clear background pixels */
33 INNER_FILL = 0x0004, /* Fill inner part even if FOREGROUND */
34 INNER_BGFILL = 0x0008, /* Fill inner part with background
35 color even if FOREGROUND */
36 INNER_FILL_MASK = 0x000c,
37 #endif
41 * Draws a scrollbar on the given screen
42 * - screen : the screen to put the scrollbar on
43 * - x : x start position of the scrollbar
44 * - y : y start position of the scrollbar
45 * - width : you won't guess =(^o^)=
46 * - height : I won't tell you either !
47 * - items : total number of items on the screen
48 * - min_shown : index of the starting item on the screen
49 * - max_shown : index of the last item on the screen
50 * - orientation : either VERTICAL or HORIZONTAL
52 extern void gui_scrollbar_draw(struct screen * screen, int x, int y,
53 int width, int height, int items,
54 int min_shown, int max_shown,
55 unsigned flags);
56 extern void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x, int y,
57 int width, int height, int items,
58 int min_shown, int max_shown,
59 unsigned flags);
60 extern void show_busy_slider(struct screen *s, int x, int y, int width, int height);
61 #endif /* HAVE_LCD_BITMAP */
62 #endif /* _GUI_SCROLLBAR_H_ */