forked from len0rd/rockbox
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
This commit is contained in:
parent
85e936b8a3
commit
b23823e8f2
1 changed files with 9 additions and 3 deletions
|
@ -21,16 +21,22 @@
|
||||||
#include <lcd.h>
|
#include <lcd.h>
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
#ifdef HAVE_LCD_BITMAP
|
||||||
/* Directions for progressbar and scrollbar */
|
/* Directions for progressbar and slidebar */
|
||||||
enum
|
enum {
|
||||||
{
|
|
||||||
Grow_Right = 0,
|
Grow_Right = 0,
|
||||||
Grow_Left,
|
Grow_Left,
|
||||||
Grow_Down,
|
Grow_Down,
|
||||||
Grow_Up
|
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 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 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 /* HAVE_LCD_BITMAP */
|
||||||
#endif /* __WIDGETS_H__ */
|
#endif /* __WIDGETS_H__ */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue