text.h 426 B

123456789101112131415161718192021222324252627282930313233343536
  1. // -*- C++ -*-
  2. // The text-piece class, used by pic2plot.
  3. enum hadjustment
  4. {
  5. CENTER_ADJUST,
  6. LEFT_ADJUST,
  7. RIGHT_ADJUST
  8. };
  9. enum vadjustment
  10. {
  11. NONE_ADJUST,
  12. ABOVE_ADJUST,
  13. BELOW_ADJUST
  14. };
  15. struct adjustment
  16. {
  17. hadjustment h;
  18. vadjustment v;
  19. };
  20. class text_piece
  21. {
  22. public:
  23. // ctor, dtor
  24. text_piece();
  25. ~text_piece();
  26. // public data
  27. char *text;
  28. adjustment adj;
  29. const char *filename;
  30. int lineno;
  31. };