Driver.c 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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.Box = HTML_Box;
  24. drv.Erase = NULL;
  25. drv.Graph_set = HTML_Graph_set;
  26. drv.Graph_close = HTML_Graph_close;
  27. drv.Line_width = NULL;
  28. drv.Set_window = NULL;
  29. drv.Begin_raster = NULL;
  30. drv.Raster = NULL;
  31. drv.End_raster = NULL;
  32. drv.Begin = HTML_Begin;
  33. drv.Move = HTML_Move;
  34. drv.Cont = HTML_Cont;
  35. drv.Close = HTML_Close;
  36. drv.Stroke = HTML_Stroke;
  37. drv.Fill = HTML_Fill;
  38. drv.Point = NULL;
  39. drv.Color = NULL;
  40. drv.Bitmap = NULL;
  41. drv.Text = HTML_Text;
  42. drv.Text_box = NULL;
  43. drv.Set_font = NULL;
  44. drv.Font_list = NULL;
  45. drv.Font_info = NULL;
  46. initialized = 1;
  47. return &drv;
  48. }