home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / window / miscutil / c_wdef.h next >
Encoding:
C/C++ Source or Header  |  1986-01-04  |  2.6 KB  |  96 lines

  1. /* C_WDEF.INC - Include file for C Windowing Toolbox */
  2.  
  3.  
  4. /* Window border types sent to w_open() */
  5. #define SPACES  0       /* blanks */
  6. #define SNGL_LN 1       /* single lines */
  7. #define DBL_LN  2       /* double lines */
  8. #define MXD_1   3       /* double horiz, single vert */
  9. #define MXD_2   4       /* double vert, single horiz */
  10. #define BLK_LN  5       /* block characters */
  11.  
  12. /* Monochrome defines */
  13. #define NORM    0x07    /* std. white on black */
  14. #define REVERS  0x70    /* reverse video */
  15. /* Character display attributes, to be */
  16. /* added or ORed to the above base modes */
  17. #define BRIGHT  0x08
  18. #define BLINK   0x80
  19.  
  20. /* Color screen foreground defines */
  21. #define FG_BLACK        0x00
  22. #define FG_BLUE         0x01
  23. #define FG_GREEN        0x02
  24. #define FG_CYAN         0x03
  25. #define FG_RED          0x04
  26. #define FG_MAGENTA      0x05
  27. #define FG_BROWN        0x06
  28. #define FG_WHITE        0x07
  29. #define FG_GRAY         0x08
  30. #define FG_LTBLUE       0x09    /* light blue */
  31. #define FG_LTGREEN      0x0A    /* light green */
  32. #define FG_LTCYAN       0x0B    /* light cyan */
  33. #define FG_LTRED        0x0C    /* light red */
  34. #define FG_LTMAGENTA    0x0D    /* light magenta */
  35. #define FG_YELLOW       0x0E
  36. #define FG_BRTWHITE     0x0F    /* bright white */
  37. /* Color screen background defines to be ORed to */
  38. /* the above foreground colors */
  39. #define BG_BLACK        0x00
  40. #define BG_BLUE         0x10
  41. #define BG_GREEN        0x20
  42. #define BG_CYAN         0x30
  43. #define BG_RED          0x40
  44. #define BG_MAGENTA      0x50
  45. #define BG_BROWN        0x60
  46. #define BG_WHITE        0x70
  47. /* Color screen blink attribute to be ORed to the */
  48. /* above foreground colors */
  49. #define COLRBLINK       0x80
  50.  
  51. /* Direction of window scroll */
  52. #define UP      0
  53. #define DOWN    1
  54.  
  55. /* Border parameter sent to w_def () */
  56. #define NOBORDER 0
  57. #define BORDER  1
  58.  
  59. /* Parameter sent to w_open () */
  60. #define NOCLR   0       /* No window pre-clear */
  61. #define CLR     1       /* Pre-clear window */
  62.  
  63. /* Allow access to functions */
  64. extern  w_init ();
  65. extern  w_def ();
  66. extern  w_open ();
  67. extern  w_close ();
  68. extern  w_kill ();
  69. extern  w_write ();
  70. extern  w_writexy ();
  71. extern  w_dsp1 ();
  72. extern  w_getstr ();
  73. extern  w_fgcolor ();
  74. extern  w_bgcolor ();
  75. extern  w_scroll ();
  76. extern  w_getcx ();
  77. extern  w_getcy ();
  78. extern  w_gotoxy ();
  79. extern  border ();
  80. extern  keyin ();
  81. extern  beep ();
  82.  
  83. /* Flag altered by keyin () */
  84. extern  char extend;
  85.  
  86. /* Flag used in error handling */
  87. extern  char err_exit; 
  88.  
  89. /* Max windowing buffer storage used */
  90. extern  int  b_usage;
  91. 
  92.  
  93.  
  94.  
  95.  
  96.