diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-04-24 13:42:40 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-04-24 13:42:40 +0000 |
commit | 3d5b21e1473dbdee6c3df66d9ba2a9d657f1b486 (patch) | |
tree | f88a339bd1510e9cf5cf1a2a33e345dd8014d513 /include/libnsfb_plot.h | |
parent | 2b303df06ea14e99e41b118b299bb0bcf58aafd5 (diff) | |
download | libnsfb-3d5b21e1473dbdee6c3df66d9ba2a9d657f1b486.tar.gz libnsfb-3d5b21e1473dbdee6c3df66d9ba2a9d657f1b486.tar.bz2 |
add legacy plotter API
svn path=/trunk/libnsfb/; revision=7304
Diffstat (limited to 'include/libnsfb_plot.h')
-rw-r--r-- | include/libnsfb_plot.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/libnsfb_plot.h b/include/libnsfb_plot.h index 2b19b52..317ae95 100644 --- a/include/libnsfb_plot.h +++ b/include/libnsfb_plot.h @@ -1,3 +1,16 @@ +/* + * Copyright 2009 Vincent Sanders <vince@simtec.co.uk> + * + * This file is part of libnsfb, http://www.netsurf-browser.org/ + * Licenced under the MIT License, + * http://www.opensource.org/licenses/mit-license.php + * + * This is the exported plotter interface for the libnsfb graphics library. + */ + +#ifndef _LIBNSFB_PLOT_H +#define _LIBNSFB_PLOT_H 1 + /** Sets a clip rectangle for subsequent plots. * * Sets a clipping area which constrains all subsequent plotting operations. @@ -6,6 +19,10 @@ */ bool nsfb_plot_set_clip(nsfb_t *nsfb, nsfb_bbox_t *clip); +/** Get the previously set clipping region. + */ +bool nsfb_plot_get_clip(nsfb_t *nsfb, nsfb_bbox_t *clip); + /** Clears plotting area to a flat colour. */ bool nsfb_plot_clg(nsfb_t *nsfb, nsfb_colour_t c); @@ -79,3 +96,5 @@ bool nsfb_plot_glyph8(nsfb_t *nsfb, nsfb_bbox_t *loc, const uint8_t *pixel, int /** Plot an 1 bit glyph. */ bool nsfb_plot_glyph1(nsfb_t *nsfb, nsfb_bbox_t *loc, const uint8_t *pixel, int pitch, nsfb_colour_t c); + +#endif /* _LIBNSFB_PLOT_H */ |