decorate.h 463 B

1234567891011121314151617181920212223242526272829303132
  1. /* Header file: decorate.h
  2. **
  3. */
  4. #include <stdio.h>
  5. /* units options */
  6. #define SB_UNITS_AUTO 0
  7. #define SB_UNITS_METERS 1
  8. #define SB_UNITS_KM 2
  9. #define SB_UNITS_FEET 3
  10. #define SB_UNITS_MILES 4
  11. #define SB_UNITS_NMILES 5
  12. struct scalebar
  13. {
  14. char type[50];
  15. double x, y;
  16. double length, height;
  17. char *font;
  18. int segment;
  19. int numbers;
  20. double width;
  21. int fontsize;
  22. int color, bgcolor;
  23. int units;
  24. };
  25. extern struct scalebar sb;