home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / 52capi.zip / GT.API < prev    next >
Text File  |  1993-08-06  |  3KB  |  130 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.  
  15. #ifndef _GT_API
  16.  
  17.  
  18. #ifndef _CLIPDEFS_H
  19. #include "clipdefs.h"
  20. #endif
  21.  
  22. /*
  23. *
  24. *  State and Settings
  25. *
  26. */
  27. extern ERRCODE _gtScrDim(USHORTP, USHORTP);
  28. extern BOOL    _gtIsColor(void);
  29.  
  30. extern ERRCODE _gtSetMode(USHORT nRows, USHORT nCols);
  31. extern USHORT  _gtMaxRow(void);
  32. extern USHORT  _gtMaxCol(void);
  33.  
  34. extern ERRCODE _gtRectSize(USHORT top, USHORT left,
  35.                            USHORT bottom, USHORT right, USHORTP sizeP);
  36. extern ERRCODE _gtSetSnowFlag(BOOL no_snow);
  37. extern ERRCODE _gtSetBlink(BOOL lOnOff);
  38.  
  39. extern void    _gtPreExt(void);
  40. extern void    _gtPostExt(void);
  41.  
  42.  
  43. /*
  44. *
  45. *  Display buffer control
  46. *
  47. */
  48. extern ERRCODE _gtDispBegin(void);
  49. extern ERRCODE _gtDispEnd(void);
  50. extern USHORT  _gtDispCount(void);
  51.  
  52.  
  53. /*
  54. *
  55. *  Cursor and position
  56. *
  57. */
  58. extern ERRCODE _gtSetCursor(USHORT type);
  59. extern ERRCODE _gtGetCursor(USHORTP typeP);
  60.  
  61. extern ERRCODE _gtSetPos(USHORT row, USHORT col);
  62. extern ERRCODE _gtGetPos(USHORTP rowP, USHORTP colP);
  63.  
  64.  
  65. /*
  66. *
  67. *  Color
  68. *
  69. */
  70. extern ERRCODE _gtSetColorStr( BYTEP cP );
  71. extern ERRCODE _gtGetColorStr( BYTEP cP );
  72. extern ERRCODE _gtColorSelect( USHORT i );
  73.  
  74.  
  75. /*
  76. *
  77. *  Output
  78. *
  79. */
  80. extern ERRCODE _gtWriteAt(USHORT row, USHORT col, BYTEP s, USHORT len);
  81. extern ERRCODE _gtWrite(BYTEP s, USHORT len);
  82. extern ERRCODE _gtWriteCon(BYTEP s, USHORT len);
  83.  
  84. extern ERRCODE _gtRepChar(USHORT row, USHORT col, USHORT c, USHORT count);
  85.  
  86. extern ERRCODE _gtScroll(USHORT top, USHORT left,
  87.                          USHORT bottom, USHORT right, short vs, short hs);
  88.  
  89. extern ERRCODE _gtBox(USHORT top, USHORT left,
  90.                       USHORT bottom, USHORT right, BYTEP framestr);
  91. extern ERRCODE _gtBoxS(USHORT top, USHORT left,
  92.                        USHORT bottom, USHORT right);
  93. extern ERRCODE _gtBoxD(USHORT top, USHORT left,
  94.                        USHORT bottom, USHORT right);
  95.  
  96.  
  97. /*
  98. *
  99. *  Screen save and restore
  100. *
  101. */
  102. extern ERRCODE _gtSave(USHORT top, USHORT left,
  103.                        USHORT bottom, USHORT right, FARP buff);
  104.  
  105. extern ERRCODE _gtRest(USHORT top, USHORT left,
  106.                        USHORT bottom, USHORT right, FARP buff);
  107.  
  108.  
  109. /*
  110. *
  111. *  Length for _gtGetColorStr() strings
  112. *
  113. */
  114. #define CLR_STRLEN            64
  115.  
  116.  
  117. /*
  118. *
  119. *  Box drawing characters
  120. *
  121. */
  122. #define _B_SINGLE          "┌─┐│┘─└│"
  123. #define _B_DOUBLE          "╔═╗║╝═╚║"
  124. #define _B_SINGLE_DOUBLE    "╓─╖║╜─╙║"
  125. #define _B_DOUBLE_SINGLE    "╒═╕│╛═╘│"
  126.  
  127.  
  128. #define _GT_API
  129. #endif
  130.