File: cursor.h

package info (click to toggle)
netsurf 2.9-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 30,680 kB
  • sloc: ansic: 214,165; objc: 8,149; cpp: 6,873; makefile: 1,368; jsp: 1,156; perl: 1,038; asm: 288; sh: 275; python: 8
file content (39 lines) | stat: -rw-r--r-- 920 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
 * 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);

/** Clear the cursor restoring the image underneath */
bool nsfb_cursor_clear(nsfb_t *nsfb, struct nsfb_cursor_s *cursor);

#endif /* CURSOR_H */