Loading...
Searching...
No Matches
htmldriver/driver.c
Go to the documentation of this file.
/****************************************************************************
*
* MODULE: HTMLMAP
* AUTHOR(S): Glynn Clements <glynn gclements.plus.com> (original
* contributor)
*
* PURPOSE: driver to allow HTML image maps
* COPYRIGHT: (C) 2007-2007 by the GRASS Development Team
*
* This program is free software under the GNU General Public
* License (>=v2). Read the file COPYING that comes with GRASS
* for details.
*
*****************************************************************************/
#include <stdio.h>
#include "driver.h"
#include "htmlmap.h"
const struct driver *HTML_Driver(void)
{
static struct driver drv;
static int initialized;
if (initialized)
return &drv;
drv.name = "html";
drv.Box = HTML_Box;
drv.Erase = NULL;
drv.Graph_set = HTML_Graph_set;
drv.Graph_close = HTML_Graph_close;
drv.Graph_get_file = NULL;
drv.Line_width = NULL;
drv.Set_window = NULL;
drv.Begin_raster = NULL;
drv.Raster = NULL;
drv.End_raster = NULL;
drv.Begin = HTML_Begin;
drv.Move = HTML_Move;
drv.Cont = HTML_Cont;
drv.Close = HTML_Close;
drv.Stroke = HTML_Stroke;
drv.Fill = HTML_Fill;
drv.Point = NULL;
drv.Color = NULL;
drv.Bitmap = NULL;
drv.Text = HTML_Text;
drv.Text_box = NULL;
drv.Set_font = NULL;
drv.Font_list = NULL;
drv.Font_info = NULL;
initialized = 1;
return &drv;
}
NULL
#define NULL
Definition ccmath.h:32
driver.h
HTML_Graph_close
void HTML_Graph_close(void)
Definition graph_clse.c:28
HTML_Box
void HTML_Box(double x1, double y1, double x2, double y2)
Definition htmldriver/box.c:3
HTML_Close
void HTML_Close(void)
Definition htmldriver/draw.c:22
HTML_Begin
void HTML_Begin(void)
Definition htmldriver/draw.c:7
HTML_Stroke
void HTML_Stroke(void)
Definition htmldriver/draw.c:32
HTML_Move
void HTML_Move(double x, double y)
Definition htmldriver/draw.c:12
HTML_Cont
void HTML_Cont(double x, double y)
Definition htmldriver/draw.c:17
HTML_Fill
void HTML_Fill(void)
Definition htmldriver/draw.c:27
HTML_Driver
const struct driver * HTML_Driver(void)
Definition htmldriver/driver.c:20
HTML_Graph_set
int HTML_Graph_set(void)
Definition htmldriver/graph_set.c:26
htmlmap.h
HTML_Text
void HTML_Text(const char *)
Definition htmldriver/text.c:9
driver
Definition driver.h:27
driver::Graph_close
void(* Graph_close)(void)
Definition driver.h:33
driver::Line_width
void(* Line_width)(double)
Definition driver.h:35
driver::Font_info
void(* Font_info)(char ***, int *)
Definition driver.h:55
driver::Text_box
void(* Text_box)(const char *, double *, double *, double *, double *)
Definition driver.h:52
driver::Point
void(* Point)(double, double)
Definition driver.h:47
driver::Fill
void(* Fill)(void)
Definition driver.h:46
driver::Graph_get_file
const char *(* Graph_get_file)(void)
Definition driver.h:34
driver::Erase
void(* Erase)(void)
Definition driver.h:31
driver::Raster
int(* Raster)(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
Definition driver.h:38
driver::Stroke
void(* Stroke)(void)
Definition driver.h:45
driver::Begin
void(* Begin)(void)
Definition driver.h:41
driver::Font_list
void(* Font_list)(char ***, int *)
Definition driver.h:54
driver::End_raster
void(* End_raster)(void)
Definition driver.h:40
driver::Box
void(* Box)(double, double, double, double)
Definition driver.h:30
driver::Move
void(* Move)(double, double)
Definition driver.h:42
driver::Begin_raster
void(* Begin_raster)(int, int[2][2], double[2][2])
Definition driver.h:37
driver::name
char * name
Definition driver.h:28
driver::Close
void(* Close)(void)
Definition driver.h:44
driver::Set_window
void(* Set_window)(double, double, double, double)
Definition driver.h:36
driver::Graph_set
int(* Graph_set)(void)
Definition driver.h:32
driver::Set_font
void(* Set_font)(const char *)
Definition driver.h:53
driver::Text
void(* Text)(const char *)
Definition driver.h:51
driver::Cont
void(* Cont)(double, double)
Definition driver.h:43
driver::Color
void(* Color)(int, int, int)
Definition driver.h:49
driver::Bitmap
void(* Bitmap)(int, int, int, const unsigned char *)
Definition driver.h:50