GRASS GIS 8 Programmer's Manual 8.2.1(2023)-exported
htmlmap.h
Go to the documentation of this file.
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
18struct MapPoly
19{
20 char *url;
22 int *x_pts;
23 int *y_pts;
25};
26
28{
29 char *last_text;
31 int type;
32 FILE *output;
33 struct MapPoly *head;
34 struct MapPoly **tail;
38};
39
40extern struct html_state html;
41
42/* Draw.c */
43extern void HTML_Begin(void);
44extern void HTML_Move(double, double);
45extern void HTML_Cont(double, double);
46extern void HTML_Close(void);
47extern void HTML_Fill(void);
48extern void HTML_Stroke(void);
49
50/* Driver.c */
51extern const struct driver *HTML_Driver(void);
52
53/* Graph_Clse.c */
54extern void HTML_Graph_close(void);
55
56/* Graph_Set.c */
57extern int HTML_Graph_set(void);
58
59/* Box.c */
60extern void HTML_Box(double, double, double, double);
61
62/* Polygon.c */
63extern void html_polygon(const struct path *);
64
65/* Text.c */
66extern void HTML_Text(const char *);
void HTML_Close(void)
void html_polygon(const struct path *)
int HTML_Graph_set(void)
const struct driver * HTML_Driver(void)
void HTML_Begin(void)
void HTML_Stroke(void)
void HTML_Graph_close(void)
Definition: graph_clse.c:32
void HTML_Box(double, double, double, double)
Definition: htmldriver/box.c:3
void HTML_Text(const char *)
void HTML_Cont(double, double)
void HTML_Move(double, double)
struct html_state html
void HTML_Fill(void)
int * y_pts
Definition: htmlmap.h:23
int num_pts
Definition: htmlmap.h:21
int * x_pts
Definition: htmlmap.h:22
struct MapPoly * next_poly
Definition: htmlmap.h:24
char * url
Definition: htmlmap.h:20
Definition: driver.h:23
int MAX_POINTS
Definition: htmlmap.h:35
int type
Definition: htmlmap.h:31
struct MapPoly * head
Definition: htmlmap.h:33
char * last_text
Definition: htmlmap.h:29
int last_text_len
Definition: htmlmap.h:30
struct MapPoly ** tail
Definition: htmlmap.h:34
FILE * output
Definition: htmlmap.h:32
int MINIMUM_DIST
Definition: htmlmap.h:37
int BBOX_MINIMUM
Definition: htmlmap.h:36
Definition: path.h:16