home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / e / emxdev8f.zip / WINMGR.H < prev   
Text File  |  1992-12-25  |  3KB  |  106 lines

  1. /* sys/winmgr.h (emx+gcc) */
  2.  
  3. #if !defined (_SYS_WINMGR_H)
  4. #define _SYS_WINMGR_H
  5.  
  6. #if !defined (_VA_LIST)
  7. #define _VA_LIST
  8. typedef char *va_list;
  9. #endif
  10.  
  11. #if !defined (B_BLACK)
  12.  
  13. /* Background colors */
  14.  
  15. #define B_BLACK      0x00
  16. #define B_BLUE       0x10
  17. #define B_GREEN      0x20
  18. #define B_CYAN       0x30
  19. #define B_RED        0x40
  20. #define B_MAGENTA    0x50
  21. #define B_YELLOW     0x60
  22. #define B_BROWN      0x60
  23. #define B_WHITE      0x70
  24.  
  25. /* Foreground colors */
  26.  
  27. #define F_BLACK      0x00
  28. #define F_BLUE       0x01
  29. #define F_GREEN      0x02
  30. #define F_CYAN       0x03
  31. #define F_RED        0x04
  32. #define F_MAGENTA    0x05
  33. #define F_YELLOW     0x06
  34. #define F_BROWN      0x06
  35. #define F_WHITE      0x07
  36.  
  37. /* Other attributes */
  38.  
  39. #define INTENSITY    0x08
  40. #define BLINK        0x80
  41.  
  42. /* black and white attributes */
  43.  
  44. #define BW_BLANK     0x00
  45. #define BW_UNDERLINE 0x01
  46. #define BW_NORMAL    0x07
  47. #define BW_REVERSE   0x70
  48.  
  49. #endif
  50.  
  51. typedef struct _wm_window *wm_handle;
  52.  
  53. void wm_attrib (wm_handle wh, int a);
  54. void wm_attrib_all (wm_handle wh, int a);
  55. void wm_backsp (wm_handle wh, int count);
  56. void wm_border (wm_handle wh, int bflag, int battr, __const__ char *title,
  57.     int tflag, int tattr);
  58. void wm_bottom (wm_handle wh);
  59. void wm_chide (int flag);
  60. void wm_clear (wm_handle wh);
  61. void wm_close (wm_handle wh);
  62. void wm_close_all (void);
  63. void wm_clr_eol (wm_handle wh, int x, int y);
  64. wm_handle wm_create (int x0, int y0, int x1, int y1, int border, int battr,
  65.     int wattr);
  66. void wm_ctype (wm_handle wh, int start, int end);
  67. void wm_cursor (wm_handle wh);
  68. void wm_cvis (wm_handle wh, int flag);
  69. void wm_del_char (wm_handle wh, int x, int y, int count);
  70. void wm_del_line (wm_handle wh, int y, int count);
  71. void wm_delete (wm_handle wh);
  72. void wm_dimen (wm_handle wh, int *width, int *height);
  73. void wm_down (wm_handle wh);
  74. void wm_exit (void);
  75. wm_handle wm_find (int x, int y);
  76. int wm_get_attrib (wm_handle wh);
  77. wm_handle wm_get_cursor (void);
  78. void wm_get_pos (wm_handle wh, int *x, int *y);
  79. int wm_getx (wm_handle wh);
  80. void wm_getxy (wm_handle wh, int *x, int *y);
  81. int wm_gety (wm_handle wh);
  82. void wm_gotoxy (wm_handle wh, int x, int y);
  83. void wm_ins_char (wm_handle wh, int x, int y, int count);
  84. void wm_ins_line (wm_handle wh, int y, int count);
  85. int wm_init (int n);
  86. void wm_move (wm_handle wh, int x, int y);
  87. void wm_open (wm_handle wh);
  88. int wm_printf (wm_handle wh, __const__ char *fmt, ...);
  89. void wm_puta_at (wm_handle wh, int x, int y, int a, int count);
  90. void wm_putc (wm_handle wh, char c);
  91. void wm_putc_at (wm_handle wh, int x, int y, char c);
  92. void wm_putca (wm_handle wh, char c, int a);
  93. void wm_putca_at (wm_handle wh, int x, int y, char c, int a);
  94. void wm_puts (wm_handle wh, __const__ char *str);
  95. void wm_puts_at (wm_handle wh, int x, int y, __const__ char *str);
  96. void wm_putsa (wm_handle wh, __const__ char *str, int a);
  97. void wm_putsa_at (wm_handle wh, int x, int y, __const__ char *str, int a);
  98. void wm_scroll (wm_handle wh, int count);
  99. void wm_top (wm_handle wh);
  100. void wm_up (wm_handle wh);
  101. void wm_update (wm_handle wh, int flag);
  102. int wm_vprintf (wm_handle wh, __const__ char *fmt, va_list arg_ptr);
  103. void wm_wrap (wm_handle wh, int wrap_flag);
  104.  
  105. #endif /* !defined (_SYS_WINMGR_H) */
  106.