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/icon.h | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 apps/gui/icon.h (limited to 'apps/gui/icon.h') diff --git a/apps/gui/icon.h b/apps/gui/icon.h new file mode 100644 index 0000000000..46faf0972f --- /dev/null +++ b/apps/gui/icon.h @@ -0,0 +1,51 @@ +/*************************************************************************** + * __________ __ ___. + * Open \______ \ ____ ____ | | _\_ |__ _______ ___ + * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / + * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < + * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ + * \/ \/ \/ \/ \/ + * $Id$ + * + * Copyright (C) 2005 by 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_ICON_H_ +#define _GUI_ICON_H_ +#include "lcd.h" +#include "screen_access.h" +/* Defines a type for the icons since it's not the same thing on + * char-based displays and bitmap displays */ +#ifdef HAVE_LCD_BITMAP + #define ICON const unsigned char * +#else + #define ICON unsigned short +#endif + +#define CURSOR_CHAR 0x92 +#define CURSOR_WIDTH 6 +#define CURSOR_HEIGHT 8 +/* + * Draws a cursor at a given position + * - screen : the screen where we put the cursor + * - x, y : the position, in character, not in pixel !! + */ +extern void screen_put_cursorxy(struct screen * screen, int x, int y); + +/* + * Put an icon on a screen at a given position + * (the position is given in characters) + * - screen : the screen where we put our icon + * - x, y : the position, in character, not in pixel !! + * - icon : the icon to put + */ +extern void screen_put_iconxy(struct screen * screen, int x, int y, ICON icon); + +#endif /*_GUI_ICON_H_*/ -- cgit v1.2.3