From 7da9477bc3401cbd90b2984f625f96f451ecaf6b Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Fri, 28 Oct 2005 00:00:00 +0000 Subject: Initial multi screen support by Kévin Ferrare (Patch #1318081) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7666 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/scrollbar.h | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 apps/gui/scrollbar.h (limited to 'apps/gui/scrollbar.h') diff --git a/apps/gui/scrollbar.h b/apps/gui/scrollbar.h new file mode 100644 index 0000000000..51c08352ba --- /dev/null +++ b/apps/gui/scrollbar.h @@ -0,0 +1,49 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2005 Kévin FERRARE + * + * All files in this archive are subject to the GNU General Public License. + * See the file COPYING in the source tree root for full license agreement. + * + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY + * KIND, either express or implied. + * + ****************************************************************************/ + +#ifndef _GUI_SCROLLBAR_H_ +#define _GUI_SCROLLBAR_H_ +#include +#ifdef HAVE_LCD_BITMAP + +struct screen; + +enum orientation { + VERTICAL, + HORIZONTAL +}; + +/* + * Draws a scrollbar on the given screen + * - screen : the screen to put the scrollbar on + * - x : x start position of the scrollbar + * - y : y start position of the scrollbar + * - width : you won't guess =(^o^)= + * - height : I won't tell you either ! + * - items : total number of items on the screen + * - min_shown : index of the starting item on the screen + * - max_shown : index of the last item on the screen + * - orientation : either VERTICAL or HORIZONTAL + */ +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); +#endif /* HAVE_LCD_BITMAP */ +#endif /* _GUI_SCROLLBAR_H_ */ -- cgit v1.2.3