diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-06-02 13:01:45 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-06-02 13:01:45 +0000 |
commit | 30edb722902dff842b5b9544f9b43846b93adc92 (patch) | |
tree | ade17d9dc0ec2985a82a767134d2f22c354d181b /include/nsfb_plot.h | |
parent | 3d5b21e1473dbdee6c3df66d9ba2a9d657f1b486 (diff) | |
download | libnsfb-30edb722902dff842b5b9544f9b43846b93adc92.tar.gz libnsfb-30edb722902dff842b5b9544f9b43846b93adc92.tar.bz2 |
add cursor support
svn path=/trunk/libnsfb/; revision=7687
Diffstat (limited to 'include/nsfb_plot.h')
-rw-r--r-- | include/nsfb_plot.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/nsfb_plot.h b/include/nsfb_plot.h index 718de6f..6574fad 100644 --- a/include/nsfb_plot.h +++ b/include/nsfb_plot.h @@ -60,7 +60,7 @@ typedef bool (nsfb_plotfn_ellipse_fill_t)(nsfb_t *nsfb, nsfb_bbox_t *ellipse, ns /** Plot bitmap */ -typedef bool (nsfb_plotfn_bitmap_t)(nsfb_t *nsfb, nsfb_bbox_t *loc, const nsfb_colour_t *pixel, int bmp_width, int bmp_height, int bmp_stride, bool alpha); +typedef bool (nsfb_plotfn_bitmap_t)(nsfb_t *nsfb, const nsfb_bbox_t *loc, const nsfb_colour_t *pixel, int bmp_width, int bmp_height, int bmp_stride, bool alpha); /** Copy an area of screen @@ -70,15 +70,18 @@ typedef bool (nsfb_plotfn_bitmap_t)(nsfb_t *nsfb, nsfb_bbox_t *loc, const nsfb_c typedef bool (nsfb_plotfn_copy_t)(nsfb_t *nsfb, int srcx, int srcy, int width, int height, int dstx, int dsty); -/** Plot an 8 bit glyph. +/** Plot an 8 bit per pixel glyph. */ typedef bool (nsfb_plotfn_glyph8_t)(nsfb_t *nsfb, nsfb_bbox_t *loc, const uint8_t *pixel, int pitch, nsfb_colour_t c); -/** Plot an 1 bit glyph. +/** Plot an 1 bit per pixel glyph. */ typedef bool (nsfb_plotfn_glyph1_t)(nsfb_t *nsfb, nsfb_bbox_t *loc, const uint8_t *pixel, int pitch, nsfb_colour_t c); +/** Read rectangle of screen into buffer + */ +typedef bool (nsfb_plotfn_readrect_t)(nsfb_t *nsfb, nsfb_bbox_t *rect, nsfb_colour_t *buffer); /** plotter function table. */ typedef struct nsfb_plotter_fns_s { @@ -97,6 +100,7 @@ typedef struct nsfb_plotter_fns_s { nsfb_plotfn_copy_t *copy; nsfb_plotfn_glyph8_t *glyph8; nsfb_plotfn_glyph1_t *glyph1; + nsfb_plotfn_readrect_t *readrect; } nsfb_plotter_fns_t; |