From 3d5b21e1473dbdee6c3df66d9ba2a9d657f1b486 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Fri, 24 Apr 2009 13:42:40 +0000 Subject: add legacy plotter API svn path=/trunk/libnsfb/; revision=7304 --- include/libnsfb_plot.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'include/libnsfb_plot.h') 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 + * + * 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 */ -- cgit v1.2.3