diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-10-28 00:00:00 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-10-28 00:00:00 +0000 |
commit | 7da9477bc3401cbd90b2984f625f96f451ecaf6b (patch) | |
tree | 8aea2c154ad0f666f57c4752fa541fa539de757c /apps/gui/icon.h | |
parent | 3efa91ed03797dd533c0add6db750ade67499587 (diff) | |
download | rockbox-7da9477bc3401cbd90b2984f625f96f451ecaf6b.tar.gz rockbox-7da9477bc3401cbd90b2984f625f96f451ecaf6b.zip |
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/icon.h')
-rw-r--r-- | apps/gui/icon.h | 51 |
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 | */ | ||
40 | extern 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 | */ | ||
49 | extern void screen_put_iconxy(struct screen * screen, int x, int y, ICON icon); | ||
50 | |||
51 | #endif /*_GUI_ICON_H_*/ | ||