Loading...
Searching...
No Matches
htmlmap.h
Go to the documentation of this file.
#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 *);
html
struct html_state html
Definition htmldriver/graph_set.c:24
HTML_Close
void HTML_Close(void)
Definition htmldriver/draw.c:22
html_polygon
void html_polygon(const struct path *)
Definition htmldriver/polygon.c:51
HTML_Graph_set
int HTML_Graph_set(void)
Definition htmldriver/graph_set.c:26
HTML_Driver
const struct driver * HTML_Driver(void)
Definition htmldriver/driver.c:20
HTML_Begin
void HTML_Begin(void)
Definition htmldriver/draw.c:7
HTML_Stroke
void HTML_Stroke(void)
Definition htmldriver/draw.c:32
HTML_Graph_close
void HTML_Graph_close(void)
Definition graph_clse.c:28
HTML_Box
void HTML_Box(double, double, double, double)
Definition htmldriver/box.c:3
HTML_Text
void HTML_Text(const char *)
Definition htmldriver/text.c:9
HTML_Cont
void HTML_Cont(double, double)
Definition htmldriver/draw.c:17
HTML_Move
void HTML_Move(double, double)
Definition htmldriver/draw.c:12
HTML_Fill
void HTML_Fill(void)
Definition htmldriver/draw.c:27
path.h
MapPoly
Definition htmlmap.h:17
MapPoly::y_pts
int * y_pts
Definition htmlmap.h:21
MapPoly::num_pts
int num_pts
Definition htmlmap.h:19
MapPoly::x_pts
int * x_pts
Definition htmlmap.h:20
MapPoly::next_poly
struct MapPoly * next_poly
Definition htmlmap.h:22
MapPoly::url
char * url
Definition htmlmap.h:18
driver
Definition driver.h:27
html_state
Definition htmlmap.h:25
html_state::MAX_POINTS
int MAX_POINTS
Definition htmlmap.h:32
html_state::type
int type
Definition htmlmap.h:28
html_state::head
struct MapPoly * head
Definition htmlmap.h:30
html_state::last_text
char * last_text
Definition htmlmap.h:26
html_state::last_text_len
int last_text_len
Definition htmlmap.h:27
html_state::tail
struct MapPoly ** tail
Definition htmlmap.h:31
html_state::output
FILE * output
Definition htmlmap.h:29
html_state::MINIMUM_DIST
int MINIMUM_DIST
Definition htmlmap.h:34
html_state::BBOX_MINIMUM
int BBOX_MINIMUM
Definition htmlmap.h:33
path
Definition path.h:15