diff options
author | Markus Braun <markus.braun@krawel.de> | 2002-08-28 14:25:56 +0000 |
---|---|---|
committer | Markus Braun <markus.braun@krawel.de> | 2002-08-28 14:25:56 +0000 |
commit | b23823e8f2b9536a9d0ff3d283b10e24172f6e2c (patch) | |
tree | de44b9edcd6b348ffc2510a6c301466bb28fe5e5 | |
parent | 85e936b8a33879b8c84c22cd8ac9471a95b24701 (diff) | |
download | rockbox-b23823e8f2b9536a9d0ff3d283b10e24172f6e2c.tar.gz rockbox-b23823e8f2b9536a9d0ff3d283b10e24172f6e2c.zip |
Added a scrollbar with sizable knob for directory browsing etc.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2041 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | apps/recorder/widgets.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/recorder/widgets.h b/apps/recorder/widgets.h index bae9f391de..18f59a8893 100644 --- a/apps/recorder/widgets.h +++ b/apps/recorder/widgets.h | |||
@@ -21,16 +21,22 @@ | |||
21 | #include <lcd.h> | 21 | #include <lcd.h> |
22 | 22 | ||
23 | #ifdef HAVE_LCD_BITMAP | 23 | #ifdef HAVE_LCD_BITMAP |
24 | /* Directions for progressbar and scrollbar */ | 24 | /* Directions for progressbar and slidebar */ |
25 | enum | 25 | enum { |
26 | { | ||
27 | Grow_Right = 0, | 26 | Grow_Right = 0, |
28 | Grow_Left, | 27 | Grow_Left, |
29 | Grow_Down, | 28 | Grow_Down, |
30 | Grow_Up | 29 | Grow_Up |
31 | }; | 30 | }; |
32 | 31 | ||
32 | /* Orientation for scrollbar */ | ||
33 | enum { | ||
34 | VERTICAL = 0, | ||
35 | HORIZONTAL | ||
36 | }; | ||
37 | |||
33 | extern void progressbar(int x, int y, int width, int height, int percent, int direction); | 38 | extern void progressbar(int x, int y, int width, int height, int percent, int direction); |
34 | extern void slidebar(int x, int y, int width, int height, int percent, int direction); | 39 | extern void slidebar(int x, int y, int width, int height, int percent, int direction); |
40 | extern void scrollbar(int x, int y, int width, int height, int items, int min_shown, int max_shown, int orientation); | ||
35 | #endif /* HAVE_LCD_BITMAP */ | 41 | #endif /* HAVE_LCD_BITMAP */ |
36 | #endif /* __WIDGETS_H__ */ | 42 | #endif /* __WIDGETS_H__ */ |