diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-03-26 07:52:13 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-03-26 07:52:13 +0000 |
commit | ad4e3d665734b14a28f1ba5fa874663772dab3e7 (patch) | |
tree | bff44652495f1319a4d11ed63b3d4e90cb11197f /apps/screen_access.h | |
parent | 165f62d0cd771660e4b8d2ba7475e14d0d6f2e9f (diff) | |
download | rockbox-ad4e3d665734b14a28f1ba5fa874663772dab3e7.tar.gz rockbox-ad4e3d665734b14a28f1ba5fa874663772dab3e7.zip |
First step of charcell LCD code rework: * Make it fully unicode aware so that adding non-ISO8859-1 scripts becomes possible (limited by the LCD capabilities of course). * Make the API more similar to the bitmap LCD code's API. * Moved hardware dependent parts to target tree. * Simplified code. * Jumpscroll temporarily non-functional.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12916 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screen_access.h')
-rw-r--r-- | apps/screen_access.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/apps/screen_access.h b/apps/screen_access.h index 54f2d64fdb..c1d8b5f9b8 100644 --- a/apps/screen_access.h +++ b/apps/screen_access.h | |||
@@ -60,24 +60,19 @@ struct screen | |||
60 | #ifdef HAS_BUTTONBAR | 60 | #ifdef HAS_BUTTONBAR |
61 | bool has_buttonbar; | 61 | bool has_buttonbar; |
62 | #endif | 62 | #endif |
63 | |||
64 | #if defined(HAVE_LCD_BITMAP) || defined(HAVE_REMOTE_LCD) /* always bitmap */ | ||
65 | void (*setmargins)(int x, int y); | 63 | void (*setmargins)(int x, int y); |
66 | int (*getxmargin)(void); | 64 | int (*getxmargin)(void); |
67 | int (*getymargin)(void); | 65 | int (*getymargin)(void); |
68 | 66 | ||
69 | void (*setfont)(int newfont); | ||
70 | int (*getstringsize)(const unsigned char *str, int *w, int *h); | 67 | int (*getstringsize)(const unsigned char *str, int *w, int *h); |
71 | void (*putsxy)(int x, int y, const unsigned char *str); | 68 | #if defined(HAVE_LCD_BITMAP) || defined(HAVE_REMOTE_LCD) /* always bitmap */ |
69 | void (*setfont)(int newfont); | ||
72 | 70 | ||
73 | void (*scroll_step)(int pixels); | 71 | void (*scroll_step)(int pixels); |
74 | void (*puts_offset)(int x, int y, const unsigned char *str, int offset); | ||
75 | void (*puts_style_offset)(int x, int y, const unsigned char *str, | 72 | void (*puts_style_offset)(int x, int y, const unsigned char *str, |
76 | int style, int offset); | 73 | int style, int offset); |
77 | void (*puts_scroll_style)(int x, int y, const unsigned char *string, | 74 | void (*puts_scroll_style)(int x, int y, const unsigned char *string, |
78 | int style); | 75 | int style); |
79 | void (*puts_scroll_offset)(int x, int y, const unsigned char *string, | ||
80 | int offset); | ||
81 | void (*puts_scroll_style_offset)(int x, int y, const unsigned char *string, | 76 | void (*puts_scroll_style_offset)(int x, int y, const unsigned char *string, |
82 | int style, int offset); | 77 | int style, int offset); |
83 | void (*mono_bitmap)(const unsigned char *src, | 78 | void (*mono_bitmap)(const unsigned char *src, |
@@ -114,17 +109,22 @@ struct screen | |||
114 | 109 | ||
115 | #ifdef HAVE_LCD_CHARCELLS /* no charcell remote LCDs so far */ | 110 | #ifdef HAVE_LCD_CHARCELLS /* no charcell remote LCDs so far */ |
116 | void (*double_height)(bool on); | 111 | void (*double_height)(bool on); |
117 | void (*putc)(int x, int y, unsigned short ch); | 112 | void (*putc)(int x, int y, unsigned long ucs); |
118 | void (*icon)(int icon, bool enable); | 113 | void (*icon)(int icon, bool enable); |
114 | unsigned long (*get_locked_pattern)(void); | ||
115 | void (*define_pattern)(unsigned long ucs, const char *pattern); | ||
119 | #endif | 116 | #endif |
120 | void (*init)(void); | 117 | void (*init)(void); |
118 | void (*putsxy)(int x, int y, const unsigned char *str); | ||
119 | void (*puts)(int x, int y, const unsigned char *str); | ||
120 | void (*puts_offset)(int x, int y, const unsigned char *str, int offset); | ||
121 | void (*puts_scroll)(int x, int y, const unsigned char *string); | 121 | void (*puts_scroll)(int x, int y, const unsigned char *string); |
122 | void (*puts_scroll_offset)(int x, int y, const unsigned char *string, | ||
123 | int offset); | ||
122 | void (*scroll_speed)(int speed); | 124 | void (*scroll_speed)(int speed); |
123 | void (*scroll_delay)(int ms); | 125 | void (*scroll_delay)(int ms); |
124 | void (*stop_scroll)(void); | 126 | void (*stop_scroll)(void); |
125 | void (*clear_display)(void); | 127 | void (*clear_display)(void); |
126 | unsigned char (*get_locked_pattern)(void); | ||
127 | void (*define_pattern)(int pat, const char *pattern); | ||
128 | #if defined(HAVE_LCD_BITMAP) || defined(HAVE_REMOTE_LCD) || defined(SIMULATOR) | 128 | #if defined(HAVE_LCD_BITMAP) || defined(HAVE_REMOTE_LCD) || defined(SIMULATOR) |
129 | void (*update)(void); | 129 | void (*update)(void); |
130 | #endif | 130 | #endif |
@@ -132,7 +132,6 @@ struct screen | |||
132 | void (*backlight_off)(void); | 132 | void (*backlight_off)(void); |
133 | bool (*is_backlight_on)(void); | 133 | bool (*is_backlight_on)(void); |
134 | void (*backlight_set_timeout)(int index); | 134 | void (*backlight_set_timeout)(int index); |
135 | void (*puts)(int x, int y, const unsigned char *str); | ||
136 | }; | 135 | }; |
137 | 136 | ||
138 | /* | 137 | /* |