Paintlib.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. #ifndef GRASS_PAINTLIBDEFS_H
  2. #define GRASS_PAINTLIBDEFS_H
  3. /* From applib */
  4. /* alpha.c */
  5. int Palpha(void);
  6. /* close.c */
  7. int Pclose(void);
  8. /* colorlevel.c */
  9. int Pcolorlevels(int *, int *, int *);
  10. /* colormult.c */
  11. int Pcolormultipliers(int *, int *, int *);
  12. /* colornum.c */
  13. int Pcolornum(double, double, double);
  14. /* colortable.c */
  15. int Pcolortable(unsigned char *, unsigned char *, unsigned char *,
  16. unsigned char *, int);
  17. /* colorvalue.c */
  18. int Pcolorvalue(int, float *, float *, float *);
  19. /* connect.c */
  20. int Pconnect(void);
  21. int Pdisconnect(void);
  22. /* data.c */
  23. int Pdata_begin(void);
  24. int Pdata(unsigned char *, int);
  25. int Pdata_end(void);
  26. /* device.c */
  27. int P__closedev(void);
  28. int P__errordev(char *);
  29. int P__flushdev(void);
  30. int P__opendev(char *, char *[], char *);
  31. int P__readdev(void *, int);
  32. int P__writedev(void *, int);
  33. /* flush.c */
  34. int Pflush(void);
  35. /* hres.c */
  36. double Phres(void);
  37. /* io.c */
  38. int P__opcode(int);
  39. int P__get(char *, int);
  40. int P__gets(char *);
  41. int P__geti(void);
  42. double P__getf(void);
  43. int P__send(char *, int);
  44. int P__sendi(int);
  45. int P__sendf(double);
  46. int P__sends(char *);
  47. int P__transparent(int);
  48. /* lock.c */
  49. int Plock(void);
  50. /* misc.c */
  51. int Pblockspace(void);
  52. int Pblocksize(void);
  53. int Pnblocks(void);
  54. int Ptextspace(void);
  55. int Ptextfudge(void);
  56. double Ptextscale(void);
  57. /* nchars.c */
  58. int Pnchars(void);
  59. /* ncolors.c */
  60. int Pncolors(void);
  61. /* npixels.c */
  62. int Pnpixels(int *, int *);
  63. /* painter.c */
  64. char *Ppainter_name(void);
  65. /* pictsize.c */
  66. int Ppictsize(int, int);
  67. /* raster.c */
  68. int Praster(void);
  69. /* rle.c */
  70. int Prle_begin(void);
  71. int Prle_end(void);
  72. int Prle_set_cols(int);
  73. /* text.c */
  74. int Ptext(char *);
  75. /* vres.c */
  76. double Pvres(void);
  77. /* From Driver/{whatever} code */
  78. /* init.c */
  79. int Pinit(void);
  80. /* finish.c */
  81. int Pfinish(void);
  82. /* From driverlib */
  83. /* interface.c */
  84. int paint_interface(int, char **);
  85. int paint_error(char *);
  86. int paint_delay(int);
  87. int paint_lock(char *, int);
  88. int paint_unlock(void);
  89. int paint_colortable(int);
  90. /* colors.c */
  91. int Pset_color_levels(int);
  92. int Pcolorlevels(int *, int *, int *);
  93. int Pcolormultipliers(int *, int *, int *);
  94. int Pcolornum(double, double, double);
  95. int Pcolorvalue(int, float *, float *, float *);
  96. int Pncolors(void);
  97. /* io.c */
  98. int Pclose(void);
  99. int Pflush(void);
  100. int Pout(char *, int);
  101. int Poutc(int);
  102. int Pouts(char *);
  103. #ifdef PAINT_DRIVERLIB
  104. int Popen(char *);
  105. int Prle(unsigned char *, int);
  106. #else
  107. /* open.c */
  108. int Popen(void);
  109. int Prle(unsigned char, int);
  110. #endif
  111. #endif