forked from len0rd/rockbox
Markus Braun's progressbar and slidebar code
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1510 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
7769ad2982
commit
57e2fb1f37
2 changed files with 149 additions and 0 deletions
|
|
@ -74,6 +74,15 @@ extern void lcd_double_height (bool on);
|
|||
#define LCD_WIDTH 112 /* Display width in pixels */
|
||||
#define LCD_HEIGHT 64 /* Display height in pixels */
|
||||
|
||||
/* Directions for progressbar and scrollbar */
|
||||
enum
|
||||
{
|
||||
BAR_RIGHT = 0,
|
||||
BAR_LEFT,
|
||||
BAR_DOWN,
|
||||
BAR_UP
|
||||
};
|
||||
|
||||
extern void lcd_putsxy(int x, int y, unsigned char *string, int font);
|
||||
extern void lcd_setfont(int font);
|
||||
extern void lcd_getfontsize(unsigned int font, int *width, int *height);
|
||||
|
|
@ -88,6 +97,8 @@ extern void lcd_drawline( int x1, int y1, int x2, int y2 );
|
|||
extern void lcd_clearline( int x1, int y1, int x2, int y2 );
|
||||
extern void lcd_drawpixel(int x, int y);
|
||||
extern void lcd_clearpixel(int x, int y);
|
||||
extern void lcd_progressbar(int x, int y, int width, int height, int percent, int direction);
|
||||
extern void lcd_slidebar(int x, int y, int width, int height, int percent, int direction);
|
||||
|
||||
#endif /* CHARCELLS / BITMAP */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue