2005-10-28 00:00:00 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
2005-10-30 01:24:35 +00:00
|
|
|
* Copyright (C) 2005 by Kevin Ferrare
|
2005-10-28 00:00:00 +00:00
|
|
|
*
|
|
|
|
* 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 "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
|
2006-08-23 20:02:06 +00:00
|
|
|
typedef const unsigned char * ICON;
|
|
|
|
#define NOICON NULL
|
2005-10-28 00:00:00 +00:00
|
|
|
#else
|
2006-08-23 20:02:06 +00:00
|
|
|
typedef short ICON;
|
|
|
|
#define NOICON -1
|
2005-10-28 00:00:00 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#define CURSOR_CHAR 0x92
|
|
|
|
#define CURSOR_WIDTH 6
|
|
|
|
#define CURSOR_HEIGHT 8
|
2005-11-16 02:12:25 +00:00
|
|
|
|
2005-10-28 00:00:00 +00:00
|
|
|
/*
|
2005-11-16 02:12:25 +00:00
|
|
|
* Draws a cursor at a given position, if th
|
2005-10-28 00:00:00 +00:00
|
|
|
* - screen : the screen where we put the cursor
|
|
|
|
* - x, y : the position, in character, not in pixel !!
|
2005-11-16 02:12:25 +00:00
|
|
|
* - on : true if the cursor must be shown, false if it must be erased
|
2005-10-28 00:00:00 +00:00
|
|
|
*/
|
2005-11-16 02:12:25 +00:00
|
|
|
extern void screen_put_cursorxy(struct screen * screen, int x, int y, bool on);
|
2005-10-28 00:00:00 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Put an icon on a screen at a given position
|
|
|
|
* (the position is given in characters)
|
2005-11-16 02:12:25 +00:00
|
|
|
* If the given icon is null (HAVE_LCD_BITMAP) or -1 otherwise, the icon
|
|
|
|
* at the given position will be erased
|
2005-10-28 00:00:00 +00:00
|
|
|
* - 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_*/
|