From 661c3406a928bad14102a09219774884f9e1db91 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 13 Oct 2006 04:16:49 +0000 Subject: Added inner fill option to normal scrollbar and foreground only option. Added a left-pointing cursor for using pointer. Updated color picker and now sliders look very good on color, grayscale and mono screens when using bar selector. Some misc. changes for appearance. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11210 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/scrollbar.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'apps/gui/scrollbar.h') diff --git a/apps/gui/scrollbar.h b/apps/gui/scrollbar.h index 541cc2d4df..40279a1a9d 100644 --- a/apps/gui/scrollbar.h +++ b/apps/gui/scrollbar.h @@ -24,8 +24,15 @@ #ifdef HAVE_LCD_BITMAP enum orientation { - VERTICAL, - HORIZONTAL + VERTICAL = 0x0000, /* Vertical orientation */ + HORIZONTAL = 0x0001, /* Horizontal orientation */ +#ifdef HAVE_LCD_COLOR + FOREGROUND = 0x0002, /* Do not clear background pixels */ + INNER_FILL = 0x0004, /* Fill inner part even if FOREGROUND */ + INNER_BGFILL = 0x0008, /* Fill inner part with background + color even if FOREGROUND */ + INNER_FILL_MASK = 0x000c, +#endif }; /* @@ -43,10 +50,10 @@ enum orientation { extern void gui_scrollbar_draw(struct screen * screen, int x, int y, int width, int height, int items, int min_shown, int max_shown, - enum orientation orientation); + unsigned flags); extern void gui_bitmap_scrollbar_draw(struct screen * screen, struct bitmap bm, int x, int y, int width, int height, int items, int min_shown, int max_shown, - enum orientation orientation); + unsigned flags); #endif /* HAVE_LCD_BITMAP */ #endif /* _GUI_SCROLLBAR_H_ */ -- cgit v1.2.3