Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3621 | sourcerer | 1 | /* |
2 | * Copyright 2009 Vincent Sanders |
||
3 | * |
||
4 | * This file is part of libnsfb, http://www.netsurf-browser.org/ |
||
5 | * Licenced under the MIT License, |
||
6 | * http://www.opensource.org/licenses/mit-license.php |
||
7 | * |
||
8 | * This is the *internal* interface for the cursor. |
||
9 | */ |
||
10 | |||
11 | #ifndef CURSOR_H |
||
12 | #define CURSOR_H 1 |
||
13 | |||
14 | struct nsfb_cursor_s { |
||
15 | bool plotted; |
||
16 | nsfb_bbox_t loc; |
||
17 | |||
18 | /* current cursor image */ |
||
19 | const nsfb_colour_t *pixel; |
||
20 | int bmp_width; |
||
21 | int bmp_height; |
||
22 | int bmp_stride; |
||
23 | int hotspot_x; |
||
24 | int hotspot_y; |
||
25 | |||
26 | /* current saved image */ |
||
27 | nsfb_bbox_t savloc; |
||
28 | nsfb_colour_t *sav; |
||
29 | int sav_size; |
||
30 | int sav_width; |
||
31 | int sav_height; |
||
32 | |||
33 | }; |
||
34 | |||
35 | /** Plot the cursor saving the image underneath. */ |
||
36 | bool nsfb_cursor_plot(nsfb_t *nsfb, struct nsfb_cursor_s *cursor); |
||
37 | |||
38 | /** Clear the cursor restoring the image underneath */ |
||
39 | bool nsfb_cursor_clear(nsfb_t *nsfb, struct nsfb_cursor_s *cursor); |
||
40 | |||
41 | #endif /* CURSOR_H */ |