GRASS 8 Programmer's Manual 8.6.0dev(2026)-1878fdfec5
Loading...
Searching...
No Matches
htmldriver/driver.c
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * MODULE: HTMLMAP
4 * AUTHOR(S): Glynn Clements <glynn gclements.plus.com> (original
5 * contributor)
6 *
7 * PURPOSE: driver to allow HTML image maps
8 * SPDX-FileCopyrightText: 2007-2007 GRASS Development Team
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 *
11 *****************************************************************************/
12
13#include <stdio.h>
14#include "driver.h"
15#include "htmlmap.h"
16
17const struct driver *HTML_Driver(void)
18{
19 static struct driver drv;
20 static int initialized;
21
22 if (initialized)
23 return &drv;
24
25 drv.name = "html";
26 drv.Box = HTML_Box;
27 drv.Erase = NULL;
28 drv.Graph_set = HTML_Graph_set;
29 drv.Graph_close = HTML_Graph_close;
30 drv.Graph_get_file = NULL;
31 drv.Line_width = NULL;
32 drv.Set_window = NULL;
33 drv.Begin_raster = NULL;
34 drv.Raster = NULL;
35 drv.End_raster = NULL;
36 drv.Begin = HTML_Begin;
37 drv.Move = HTML_Move;
38 drv.Cont = HTML_Cont;
39 drv.Close = HTML_Close;
40 drv.Stroke = HTML_Stroke;
41 drv.Fill = HTML_Fill;
42 drv.Point = NULL;
43 drv.Color = NULL;
44 drv.Bitmap = NULL;
45 drv.Text = HTML_Text;
46 drv.Text_box = NULL;
47 drv.Set_font = NULL;
48 drv.Font_list = NULL;
49 drv.Font_info = NULL;
50
51 initialized = 1;
52
53 return &drv;
54}
#define NULL
Definition ccmath.h:32
AMI_err name(char **stream_name)
Definition ami_stream.h:426
void HTML_Graph_close(void)
Definition graph_clse.c:28
void HTML_Box(double x1, double y1, double x2, double y2)
void HTML_Close(void)
void HTML_Begin(void)
void HTML_Stroke(void)
void HTML_Move(double x, double y)
void HTML_Cont(double x, double y)
void HTML_Fill(void)
const struct driver * HTML_Driver(void)
int HTML_Graph_set(void)
void HTML_Text(const char *)