home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / news / 2531 / include / uguicomp.h < prev    next >
C/C++ Source or Header  |  1994-05-30  |  3KB  |  119 lines

  1. /************************************************************************
  2. **                                                                      **
  3. **                   Ultiman's Graphic User Interface                   **
  4. **                                                                      **
  5. ** Author : Ultiman                                                     **
  6. ** Date : March    1994                                                 **
  7. ** Last revision :                                                      **
  8. ** Version : 0.99                                                       **
  9. ** Description : Defs for FastGraph's compatibility with UGUI.          **
  10. **                                                                      **
  11. *************************************************************************/
  12.  
  13. #ifndef _UGUICOMP_H_
  14. #define _UGUICOMP_H_
  15. typedef unsigned char byte;
  16. typedef unsigned int  word;
  17.  
  18. extern int ox, oy, oxx, oyy;
  19.  
  20. /* draws a full box */
  21. void g_rect ( int, int, int, int );
  22.  
  23. /* draw an empty box */
  24. void g_box ( int, int, int, int );
  25.  
  26. /* moves to a new pos */
  27. void g_move ( int, int );
  28.  
  29. /* draws a line */
  30. void g_lineto ( int, int );
  31.  
  32. /* draw an xor line */
  33. void g_linex ( int , int );
  34.  
  35. /* sets font size */
  36. void g_fontsize ( int );
  37.  
  38. /* sets justification */
  39. void g_justify ( int, int );
  40.  
  41. /* prints text */
  42. void g_print ( char *, int );
  43.  
  44. /* gets justification */
  45. void g_getjustify ( int *, int * );
  46.  
  47. /* locate in text mode */
  48. void g_locate ( int, int );
  49.  
  50. /* prints in text mode */
  51. void g_text ( char *, int );
  52.  
  53. /* change current colour */
  54. void g_setcolor ( int );
  55.  
  56. /* returns current color */
  57. int g_getcolor ( );
  58.  
  59. /* returns x pos */
  60. int g_getxpos ();
  61.  
  62. /* returns y pos */
  63. int g_getypos ();
  64.  
  65. /*/* draws a bitmap with 16 colors */
  66. void g_draw16bmp ( int, int, char * );
  67.  
  68. /* draws a bitmap with 256 colors */
  69. void g_draw256bmp ( int, int, char * );*/
  70. void g_drawBmp ( int, int, char *);
  71.  
  72. /* returns max pos */
  73. int g_getmaxx ();
  74.  
  75. int g_getmaxy ();
  76.  
  77. /* gets an image in specific format */
  78. void g_getimage ( int, int, int, int, char * );
  79.  
  80. /* puts an image in specific format */
  81. void g_putimage ( int, int, int, int, char * );
  82.  
  83. /* returns image size in memory */
  84. long g_imagesize ( int, int );
  85.  
  86. /* returns current key code */
  87. void g_intkey ( byte *, byte * );
  88.  
  89. /* draws a box in XOR mode */
  90. void g_boxx ( int, int, int, int );
  91.  
  92. /* return current window */
  93. void g_getwindow ( int *, int *, int *, int * );
  94.  
  95. /* sets current window */
  96. void g_setwindow ( int, int, int, int );
  97.  
  98.  
  99. /* sets mouse visibility */
  100. void g_mousevis ( int );
  101.  
  102. /* gets mouse state */
  103. void g_mousepos ( int far *, int far *, int far * );
  104.  
  105. /* sets limits for the mouse */
  106. void g_mouselim ( int, int, int, int );
  107.  
  108. /* sets speed of the mouse */
  109. void g_mousespd ( int, int );
  110.  
  111. /* moves mouse cursor */
  112. void g_mousemov ( int, int );
  113.  
  114. /* gets press or release counts */
  115. void g_mousebut ( int, int *, int *, int *);
  116.  
  117. /* draws a mask */
  118. void g_drawMask ( int, int, unsigned char * );
  119. #endif