home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Database / CLIPR502.DOS / INCLUDE / GT.API < prev    next >
Encoding:
Text File  |  1993-02-15  |  2.7 KB  |  134 lines

  1. /***
  2. *
  3. *   Gt.api
  4. *
  5. *   C language definitions for GT (general terminal) API
  6. *
  7. *   Copyright (c) 1992-1993, Computer Associates International, Inc.
  8. *   All rights reserved.
  9. *
  10. *   CA-Clipper uses Microsoft C large model calling conventions
  11. *
  12. */
  13.  
  14. #ifndef _CLIPDEFS_H
  15.    #include "clipdefs.h"
  16. #endif
  17.  
  18. #ifndef _COLOR_CH
  19.    #include "color.ch"
  20. #endif
  21.  
  22. #ifndef _SETCURS_CH
  23.    #include "setcurs.ch"
  24. #endif
  25.  
  26.  
  27. /*
  28. *
  29. *  State and Settings
  30. *
  31. */
  32. extern ERRCODE _gtScrDim(USHORTP, USHORTP);
  33. extern BOOL    _gtIsColor(void);
  34.  
  35. extern USHORT  _gtMaxRow(void);
  36. extern USHORT  _gtMaxCol(void);
  37.  
  38. extern ERRCODE _gtRectSize(USHORT top, USHORT left,
  39.                            USHORT bottom, USHORT right, USHORTP sizeP);
  40. extern ERRCODE _gtSetSnowFlag(BOOL no_snow);
  41. extern ERRCODE _gtSetBlink(BOOL lOnOff);
  42.  
  43. extern void    _gtPreExt(void);
  44. extern void    _gtPostExt(void);
  45.  
  46.  
  47. /*
  48. *
  49. *  Display buffer control
  50. *
  51. */
  52. extern ERRCODE _gtDispBegin(void);
  53. extern ERRCODE _gtDispEnd(void);
  54. extern USHORT  _gtDispCount(void);
  55.  
  56.  
  57. /*
  58. *
  59. *  Cursor and position
  60. *
  61. */
  62. extern ERRCODE _gtSetCursor(USHORT type);
  63. extern ERRCODE _gtGetCursor(USHORTP typeP);
  64.  
  65. extern ERRCODE _gtSetPos(USHORT row, USHORT col);
  66. extern ERRCODE _gtGetPos(USHORTP rowP, USHORTP colP);
  67.  
  68.  
  69. /*
  70. *
  71. *  Color
  72. *
  73. */
  74. extern ERRCODE _gtSetColorStr( BYTEP cP );
  75. extern ERRCODE _gtGetColorStr( BYTEP cP );
  76. extern ERRCODE _gtColorSelect( USHORT i );
  77.  
  78.  
  79. /*
  80. *
  81. *  Output
  82. *
  83. */
  84. extern ERRCODE _gtWriteAt(USHORT row, USHORT col, BYTEP s, USHORT len);
  85. extern ERRCODE _gtWrite(BYTEP s, USHORT len);
  86. extern ERRCODE _gtWriteCon(BYTEP s, USHORT len);
  87.  
  88. extern ERRCODE _gtRepChar(USHORT row, USHORT col, USHORT c, USHORT count);
  89.  
  90. extern ERRCODE _gtScroll(USHORT top, USHORT left,
  91.                          USHORT bottom, USHORT right, short vs, short hs);
  92.  
  93. extern ERRCODE _gtBox(USHORT top, USHORT left,
  94.                       USHORT bottom, USHORT right, BYTEP framestr);
  95. extern ERRCODE _gtBoxS(USHORT top, USHORT left,
  96.                        USHORT bottom, USHORT right);
  97. extern ERRCODE _gtBoxD(USHORT top, USHORT left,
  98.                        USHORT bottom, USHORT right);
  99.  
  100.  
  101. /*
  102. *
  103. *  Screen save and restore
  104. *
  105. */
  106. extern ERRCODE _gtSave(USHORT top, USHORT left,
  107.                        USHORT bottom, USHORT right, FARP buff);
  108.  
  109. extern ERRCODE _gtRest(USHORT top, USHORT left,
  110.                        USHORT bottom, USHORT right, FARP buff);
  111.  
  112.  
  113. /*
  114. *
  115. *  Length for _gtGetColorStr() strings
  116. *
  117. */
  118. #define CLR_STRLEN            64
  119.  
  120.  
  121. /*
  122. *
  123. *  Box drawing characters
  124. *
  125. */
  126. #define _B_SINGLE          "┌─┐│┘─└│"
  127. #define _B_DOUBLE          "╔═╗║╝═╚║"
  128. #define _B_SINGLE_DOUBLE    "╓─╖║╜─╙║"
  129. #define _B_DOUBLE_SINGLE    "╒═╕│╛═╘│"
  130.  
  131.  
  132. #define _GT_API
  133.  
  134.