setup_graph.c 938 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /****************************************************************************
  2. *
  3. * MODULE: r.digit
  4. *
  5. * AUTHOR(S): Michael Shapiro - CERL
  6. *
  7. * PURPOSE: Interactive tool used to draw and save vector features
  8. * on a graphics monitor using a pointing device (mouse)
  9. * and save to a raster map.
  10. *
  11. * COPYRIGHT: (C) 2006 by the GRASS Development Team
  12. *
  13. * This program is free software under the GNU General Public
  14. * License (>=v2). Read the file COPYING that comes with GRASS
  15. * for details.
  16. *
  17. ***************************************************************************/
  18. #include <grass/display.h>
  19. int move(int x, int y)
  20. {
  21. return 0;
  22. }
  23. int cont(int x, int y)
  24. {
  25. return 0;
  26. }
  27. int setup_graphics(void)
  28. {
  29. D_setup(0);
  30. G_setup_plot(D_get_d_north(), D_get_d_south(), D_get_d_west(),
  31. D_get_d_east(), move, cont);
  32. return 0;
  33. }