diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-04-08 10:17:09 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-04-08 10:17:09 +0000 |
commit | 056e1ebed94379db41ebb2e40cc88a873cfb4411 (patch) | |
tree | d1d01c4b9f9d4c2c2b1db4b705e631d49cf2e6b0 /include/nsfb.h | |
download | libnsfb-056e1ebed94379db41ebb2e40cc88a873cfb4411.tar.gz libnsfb-056e1ebed94379db41ebb2e40cc88a873cfb4411.tar.bz2 |
initial commit of netsurf framebuffer library
svn path=/trunk/libnsfb/; revision=7060
Diffstat (limited to 'include/nsfb.h')
-rw-r--r-- | include/nsfb.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/nsfb.h b/include/nsfb.h new file mode 100644 index 0000000..cec4a63 --- /dev/null +++ b/include/nsfb.h @@ -0,0 +1,30 @@ +#ifndef _NSFB_H +#define _NSFB_H 1 + +#include <stdint.h> + +/** NS Framebuffer context + */ +struct nsfb_s { + int width; /**< Visible width. */ + int height; /**< Visible height. */ + int bpp; /**< Bits per pixel. */ + + int refresh; /**< Desired refresh rate for physical displays. */ + char *output_dev; /**> Path to output device for frontends that require it. */ + + uint8_t *ptr; /**< Base of video memory. */ + int linelen; /**< length of a video line. */ + + nsfb_colour_t palette[256]; /**< palette for index modes */ + nsfb_cursor_t *cursor; + + struct nsfb_frontend_rtns_s *frontend_rtns; /**< frontend routines. */ + void *frontend_priv; + + nsfb_bbox_t clip; /**< current clipping rectangle for plotters */ + struct nsfb_plotter_fns_s *plotter_fns; /**< Plotter methods */ +}; + + +#endif |