~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to lib/htmldriver/htmlmap.h

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#include <stdio.h>
 
3
#include "path.h"
 
4
 
 
5
#define DEF_MINBBOX  2
 
6
#define DEF_MINDIST  2
 
7
#define DEF_MAXPTS  99
 
8
 
 
9
#define FILE_NAME  "htmlmap"
 
10
 
 
11
#define INITIAL_TEXT 1000
 
12
 
 
13
#define APACHE 0                /* write output in apache/ncsa server image map format */
 
14
#define NCSA   0                /* write output in apache/ncsa server image map format */
 
15
#define CLIENT 1                /* write output in netscape client side image map format */
 
16
#define RAW    2                /* write output in raw format */
 
17
 
 
18
struct MapPoly
 
19
{
 
20
    char *url;
 
21
    int num_pts;
 
22
    int *x_pts;
 
23
    int *y_pts;
 
24
    struct MapPoly *next_poly;
 
25
};
 
26
 
 
27
struct html_state
 
28
{
 
29
    char *last_text;
 
30
    int last_text_len;
 
31
    int type;
 
32
    FILE *output;
 
33
    struct MapPoly *head;
 
34
    struct MapPoly **tail;
 
35
    int MAX_POINTS;
 
36
    int BBOX_MINIMUM;
 
37
    int MINIMUM_DIST;
 
38
};
 
39
 
 
40
extern struct html_state html;
 
41
 
 
42
/* Draw.c */
 
43
extern void HTML_Begin(void);
 
44
extern void HTML_Move(double, double);
 
45
extern void HTML_Cont(double, double);
 
46
extern void HTML_Close(void);
 
47
extern void HTML_Fill(void);
 
48
extern void HTML_Stroke(void);
 
49
 
 
50
/* Driver.c */
 
51
extern const struct driver *HTML_Driver(void);
 
52
 
 
53
/* Graph_Clse.c */
 
54
extern void HTML_Graph_close(void);
 
55
 
 
56
/* Graph_Set.c */
 
57
extern int HTML_Graph_set(void);
 
58
 
 
59
/* Box.c */
 
60
extern void HTML_Box(double, double, double, double);
 
61
 
 
62
/* Polygon.c */
 
63
extern void html_polygon(const struct path *);
 
64
 
 
65
/* Text.c */
 
66
extern void HTML_Text(const char *);