summaryrefslogtreecommitdiff
path: root/apps/gui/scrollbar.h
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2005-10-28 00:00:00 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2005-10-28 00:00:00 +0000
commit7da9477bc3401cbd90b2984f625f96f451ecaf6b (patch)
tree8aea2c154ad0f666f57c4752fa541fa539de757c /apps/gui/scrollbar.h
parent3efa91ed03797dd533c0add6db750ade67499587 (diff)
downloadrockbox-7da9477bc3401cbd90b2984f625f96f451ecaf6b.zip
rockbox-7da9477bc3401cbd90b2984f625f96f451ecaf6b.tar.gz
rockbox-7da9477bc3401cbd90b2984f625f96f451ecaf6b.tar.bz2
rockbox-7da9477bc3401cbd90b2984f625f96f451ecaf6b.tar.xz
Initial multi screen support by Kévin Ferrare (Patch #1318081)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7666 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/scrollbar.h')
-rw-r--r--apps/gui/scrollbar.h49
1 files changed, 49 insertions, 0 deletions
diff --git a/apps/gui/scrollbar.h b/apps/gui/scrollbar.h
new file mode 100644
index 0000000..51c0835
--- /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 <lcd.h>
+#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_ */