diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2005-06-29 01:39:50 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2005-06-29 01:39:50 +0000 |
| commit | 576908d36a58d51ee880791418a32cef25b49aba (patch) | |
| tree | da2e34886085ca15de28d1b7226064be2906232b /apps/plugin.h | |
| parent | 7e11acbce9b9a63c28ded055d02301175391e027 (diff) | |
| download | rockbox-576908d36a58d51ee880791418a32cef25b49aba.zip rockbox-576908d36a58d51ee880791418a32cef25b49aba.tar.gz rockbox-576908d36a58d51ee880791418a32cef25b49aba.tar.bz2 rockbox-576908d36a58d51ee880791418a32cef25b49aba.tar.xz | |
Third part of graphics api rework. Some small but effective optimisations. Ported remote lcd driver to new api. Preparations for including the low-level functions in the plugin api.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6907 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugin.h')
| -rw-r--r-- | apps/plugin.h | 56 |
1 files changed, 30 insertions, 26 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 78bffe0..b2e798d 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -189,35 +189,39 @@ struct plugin_api { #ifdef HAVE_REMOTE_LCD /* remote lcd */ - void (*remote_clear_display)(void); - void (*remote_puts)(int x, int y, const unsigned char *string); - void (*remote_lcd_puts_scroll)(int x, int y, const unsigned char* string); - void (*remote_lcd_stop_scroll)(void); - void (*remote_set_contrast)(int x); - - void (*remote_putsxy)(int x, int y, const unsigned char *string); - void (*remote_puts_style)(int x, int y, const unsigned char *str, int style); - void (*remote_puts_scroll_style)(int x, int y, const unsigned char* string, - int style); - void (*remote_bitmap)(const unsigned char *src, int x, int y, - int nx, int ny, bool clear); - void (*remote_drawline)(int x1, int y1, int x2, int y2); - void (*remote_clearline)(int x1, int y1, int x2, int y2); - void (*remote_drawpixel)(int x, int y); - void (*remote_clearpixel)(int x, int y); - void (*remote_setfont)(int font); - struct font* (*remote_font_get)(int font); - void (*remote_clearrect)(int x, int y, int nx, int ny); - void (*remote_fillrect)(int x, int y, int nx, int ny); - void (*remote_drawrect)(int x, int y, int nx, int ny); - void (*remote_invertrect)(int x, int y, int nx, int ny); - int (*remote_getstringsize)(const unsigned char *str, int *w, int *h); - void (*remote_update)(void); - void (*remote_update_rect)(int x, int y, int width, int height); + void (*lcd_remote_set_contrast)(int x); + void (*lcd_remote_clear_display)(void); + void (*lcd_remote_puts)(int x, int y, const unsigned char *string); + void (*lcd_remote_lcd_puts_scroll)(int x, int y, const unsigned char* string); + void (*lcd_remote_lcd_stop_scroll)(void); + + void (*lcd_remote_roll)(int pixels); + + void (*lcd_remote_set_drawmode)(int mode); + int (*lcd_remote_get_drawmode)(void); + void (*lcd_remote_setfont)(int font); + int (*lcd_remote_getstringsize)(const unsigned char *str, int *w, int *h); + void (*lcd_remote_drawpixel)(int x, int y); + void (*lcd_remote_drawline)(int x1, int y1, int x2, int y2); + void (*lcd_remote_hline)(int x1, int x2, int y); + void (*lcd_remote_vline)(int x, int y1, int y2); + void (*lcd_remote_drawrect)(int x, int y, int nx, int ny); + void (*lcd_remote_fillrect)(int x, int y, int nx, int ny); + void (*lcd_remote_bitmap_part)(const unsigned char *src, int src_x, + int src_y, int stride, int x, int y, + int width, int height); + void (*lcd_remote_bitmap)(const unsigned char *src, int x, int y, int nx, + int ny); + void (*lcd_remote_putsxy)(int x, int y, const unsigned char *string); + void (*lcd_remote_puts_style)(int x, int y, const unsigned char *str, int style); + void (*lcd_remote_puts_scroll_style)(int x, int y, const unsigned char* string, + int style); + unsigned char* lcd_remote_framebuffer; + void (*lcd_remote_update)(void); + void (*lcd_remote_update_rect)(int x, int y, int width, int height); void (*remote_backlight_on)(void); void (*remote_backlight_off)(void); - unsigned char* lcd_remote_framebuffer; #endif /* button */ |