home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Database / CLIPR503.W96 / GT.AP_ / GT.AP
Text File  |  1995-06-26  |  3KB  |  136 lines

  1. /***
  2. *
  3. *   Gt.api
  4. *
  5. *   C language definitions for GT (general terminal) API
  6. *
  7. *   Copyright (c) 1992-1995, Computer Associates International, Inc.
  8. *   All rights reserved.
  9. *
  10. *   CA-Clipper uses Microsoft C large model calling conventions
  11. *
  12. */
  13.  
  14. #ifndef _GT_API
  15.  
  16.    #define _GT_API
  17.  
  18.    #ifdef __cplusplus
  19.       extern "C" {
  20.    #endif
  21.  
  22.    #ifndef _CLIPDEFS_H
  23.       #include "clipdefs.h"
  24.    #endif
  25.  
  26.    /*
  27.    *
  28.    *  State and Settings
  29.    *
  30.    */
  31.    extern ERRCODE _gtScrDim(USHORTP, USHORTP);
  32.    extern BOOL    _gtIsColor(void);
  33.  
  34.    extern ERRCODE _gtSetMode(USHORT nRows, USHORT nCols);
  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.    #ifdef __cplusplus
  132.       }
  133.    #endif
  134.  
  135. #endif
  136.