summaryrefslogtreecommitdiff
path: root/apps/gui/icon.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/icon.h')
-rw-r--r--apps/gui/icon.h51
1 files changed, 51 insertions, 0 deletions
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 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * $Id$
9 *
10 * Copyright (C) 2005 by Kévin FERRARE
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#ifndef _GUI_ICON_H_
21#define _GUI_ICON_H_
22#include "lcd.h"
23#include "screen_access.h"
24/* Defines a type for the icons since it's not the same thing on
25 * char-based displays and bitmap displays */
26#ifdef HAVE_LCD_BITMAP
27 #define ICON const unsigned char *
28#else
29 #define ICON unsigned short
30#endif
31
32#define CURSOR_CHAR 0x92
33#define CURSOR_WIDTH 6
34#define CURSOR_HEIGHT 8
35/*
36 * Draws a cursor at a given position
37 * - screen : the screen where we put the cursor
38 * - x, y : the position, in character, not in pixel !!
39 */
40extern void screen_put_cursorxy(struct screen * screen, int x, int y);
41
42/*
43 * Put an icon on a screen at a given position
44 * (the position is given in characters)
45 * - screen : the screen where we put our icon
46 * - x, y : the position, in character, not in pixel !!
47 * - icon : the icon to put
48 */
49extern void screen_put_iconxy(struct screen * screen, int x, int y, ICON icon);
50
51#endif /*_GUI_ICON_H_*/