File: htmlmap.h

package info (click to toggle)
grass 8.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 277,040 kB
  • sloc: ansic: 460,798; python: 227,732; cpp: 42,026; sh: 11,262; makefile: 7,007; xml: 3,637; sql: 968; lex: 520; javascript: 484; yacc: 450; asm: 387; perl: 157; sed: 25; objc: 6; ruby: 4
file content (63 lines) | stat: -rw-r--r-- 1,399 bytes parent folder | download | duplicates (2)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include <stdio.h>
#include "path.h"

#define DEF_MINBBOX  2
#define DEF_MINDIST  2
#define DEF_MAXPTS   99

#define FILE_NAME    "htmlmap"

#define INITIAL_TEXT 1000

#define APACHE       0 /* write output in apache/ncsa server image map format */
#define NCSA         0 /* write output in apache/ncsa server image map format */
#define CLIENT       1 /* write output in netscape client side image map format */
#define RAW          2 /* write output in raw format */

struct MapPoly {
    char *url;
    int num_pts;
    int *x_pts;
    int *y_pts;
    struct MapPoly *next_poly;
};

struct html_state {
    char *last_text;
    int last_text_len;
    int type;
    FILE *output;
    struct MapPoly *head;
    struct MapPoly **tail;
    int MAX_POINTS;
    int BBOX_MINIMUM;
    int MINIMUM_DIST;
};

extern struct html_state html;

/* Draw.c */
extern void HTML_Begin(void);
extern void HTML_Move(double, double);
extern void HTML_Cont(double, double);
extern void HTML_Close(void);
extern void HTML_Fill(void);
extern void HTML_Stroke(void);

/* Driver.c */
extern const struct driver *HTML_Driver(void);

/* Graph_Clse.c */
extern void HTML_Graph_close(void);

/* Graph_Set.c */
extern int HTML_Graph_set(void);

/* Box.c */
extern void HTML_Box(double, double, double, double);

/* Polygon.c */
extern void html_polygon(const struct path *);

/* Text.c */
extern void HTML_Text(const char *);