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/cursor.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/cursor.h')
-rw-r--r-- | include/cursor.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/include/cursor.h b/include/cursor.h new file mode 100644 index 0000000..d22d5e6 --- /dev/null +++ b/include/cursor.h @@ -0,0 +1,36 @@ +/* + * 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 cursor. + */ + +#ifndef CURSOR_H +#define CURSOR_H 1 + +struct nsfb_cursor_s { + bool plotted; + nsfb_bbox_t loc; + + /* current cursor image */ + const nsfb_colour_t *pixel; + int bmp_width; + int bmp_height; + int bmp_stride; + + /* current saved image */ + nsfb_bbox_t savloc; + nsfb_colour_t *sav; + int sav_size; + int sav_width; + int sav_height; + +}; + +/** plot the cursor saving the image underneath. */ +bool nsfb_cursor_plot(nsfb_t *nsfb, struct nsfb_cursor_s *cursor); + +#endif /* CURSOR_H */ |