driver.c 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /****************************************************************************
  2. *
  3. * MODULE: HTMLMAP
  4. * AUTHOR(S): Glynn Clements <glynn gclements.plus.com> (original contributor)
  5. *
  6. * PURPOSE: driver to allow HTML image maps
  7. * COPYRIGHT: (C) 2007-2007 by the GRASS Development Team
  8. *
  9. * This program is free software under the GNU General Public
  10. * License (>=v2). Read the file COPYING that comes with GRASS
  11. * for details.
  12. *
  13. *****************************************************************************/
  14. #include <stdio.h>
  15. #include "driver.h"
  16. #include "htmlmap.h"
  17. const struct driver *HTML_Driver(void)
  18. {
  19. static struct driver drv;
  20. static int initialized;
  21. if (initialized)
  22. return &drv;
  23. drv.name = "html";
  24. drv.Box = HTML_Box;
  25. drv.Erase = NULL;
  26. drv.Graph_set = HTML_Graph_set;
  27. drv.Graph_close = HTML_Graph_close;
  28. drv.Graph_get_file = NULL;
  29. drv.Line_width = NULL;
  30. drv.Set_window = NULL;
  31. drv.Begin_raster = NULL;
  32. drv.Raster = NULL;
  33. drv.End_raster = NULL;
  34. drv.Begin = HTML_Begin;
  35. drv.Move = HTML_Move;
  36. drv.Cont = HTML_Cont;
  37. drv.Close = HTML_Close;
  38. drv.Stroke = HTML_Stroke;
  39. drv.Fill = HTML_Fill;
  40. drv.Point = NULL;
  41. drv.Color = NULL;
  42. drv.Bitmap = NULL;
  43. drv.Text = HTML_Text;
  44. drv.Text_box = NULL;
  45. drv.Set_font = NULL;
  46. drv.Font_list = NULL;
  47. drv.Font_info = NULL;
  48. initialized = 1;
  49. return &drv;
  50. }