diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-07-19 09:20:45 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-07-19 09:20:45 +0100 |
commit | 7ebff5169afecd39fcc9161761d88e792b703d82 (patch) | |
tree | e6725b9bab785792f6e2c357b8f99d053fefaaf2 /src/nsfb.h | |
parent | 2b22da8d169401917bbd06614b4d3ec8c8856547 (diff) | |
download | libnsfb-7ebff5169afecd39fcc9161761d88e792b703d82.tar.gz libnsfb-7ebff5169afecd39fcc9161761d88e792b703d82.tar.bz2 |
Move private headers out of include/ and into src/
To match our other libraries.
Diffstat (limited to 'src/nsfb.h')
-rw-r--r-- | src/nsfb.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/src/nsfb.h b/src/nsfb.h new file mode 100644 index 0000000..9a61775 --- /dev/null +++ b/src/nsfb.h @@ -0,0 +1,49 @@ +/* + * 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 internal interface for the libnsfb graphics library. + */ + +#ifndef _NSFB_H +#define _NSFB_H 1 + +#include <stdint.h> + + +/** NS Framebuffer context + */ +struct nsfb_s { + int width; /**< Visible width. */ + int height; /**< Visible height. */ + + char *parameters; + + enum nsfb_format_e format; /**< Framebuffer format */ + int bpp; /**< Bits per pixel - distinct from format */ + + uint8_t *ptr; /**< Base of video memory. */ + int linelen; /**< length of a video line. */ + + struct nsfb_palette_s *palette; /**< palette for index modes */ + nsfb_cursor_t *cursor; /**< cursor */ + + struct nsfb_surface_rtns_s *surface_rtns; /**< surface routines. */ + void *surface_priv; /**< surface opaque data. */ + + nsfb_bbox_t clip; /**< current clipping rectangle for plotters */ + struct nsfb_plotter_fns_s *plotter_fns; /**< Plotter methods */ +}; + + +#endif + +/* + * Local variables: + * c-basic-offset: 4 + * tab-width: 8 + * End: + */ |