summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
authorMarkus Braun <markus.braun@krawel.de>2002-08-28 14:25:56 +0000
committerMarkus Braun <markus.braun@krawel.de>2002-08-28 14:25:56 +0000
commitb23823e8f2b9536a9d0ff3d283b10e24172f6e2c (patch)
treede44b9edcd6b348ffc2510a6c301466bb28fe5e5 /apps/recorder
parent85e936b8a33879b8c84c22cd8ac9471a95b24701 (diff)
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
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/widgets.h12
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 @@
#include <lcd.h>
#ifdef HAVE_LCD_BITMAP
-/* Directions for progressbar and scrollbar */
-enum
-{
+/* Directions for progressbar and slidebar */
+enum {
Grow_Right = 0,
Grow_Left,
Grow_Down,
Grow_Up
};
+/* Orientation for scrollbar */
+enum {
+ VERTICAL = 0,
+ HORIZONTAL
+};
+
extern void progressbar(int x, int y, int width, int height, int percent, int direction);
extern void slidebar(int x, int y, int width, int height, int percent, int direction);
+extern void scrollbar(int x, int y, int width, int height, int items, int min_shown, int max_shown, int orientation);
#endif /* HAVE_LCD_BITMAP */
#endif /* __WIDGETS_H__ */