home *** CD-ROM | disk | FTP | other *** search
/ Black Box 4 / BlackBox.cdr / progc / ultrawi1.arj / UW_PROTO.H < prev    next >
Text File  |  1990-10-28  |  7KB  |  178 lines

  1. /*-------------------- function prototypes in uw_term.c --------------------*/
  2. void wn_claol( WINDOW *wnp );
  3. void wn_cleol( WINDOW *wnp );
  4. void wn_clbol( WINDOW *wnp );
  5. void wn_cleos( WINDOW *wnp );
  6. void wn_clbos( WINDOW *wnp );
  7. void wn_claos( WINDOW *wnp );
  8. void wn_cln(int qty, WINDOW *wnp);
  9. void wn_clear_tabs( WINDOW *wnp );
  10. void wn_init_tabs( int space, WINDOW *wnp );
  11. void wn_set_tab( WINDOW *wnp );
  12. void wn_reset_tab( WINDOW *wnp );
  13. void wn_tab_right( int cnt, WINDOW *wnp );
  14. void wn_tab_left( int cnt, WINDOW *wnp );
  15. void wn_ins_del_chars(int mode, int c, int cnt, WINDOW *wnp );
  16. void wn_ins_del_lines(int mode, int c, int cnt, WINDOW *wnp );
  17. void wn_csr_dn( int qty, WINDOW *wnp );
  18. void wn_csr_up( int qty, WINDOW *wnp );
  19. void wn_csr_left( int qty, WINDOW *wnp );
  20. void wn_csr_right( int qty, WINDOW *wnp );
  21. void wn_csr_pos( int line, int col, WINDOW *wnp );
  22. void wn_scroll_reg( int line_s, int line_e, WINDOW *wnp );
  23. void wn_bksp( int qty, WINDOW *wnp );
  24.  
  25. /*-------------------- function prototypes in uw_prtf.c --------------------*/
  26. int wn_printf( WINDOW *wnp, char *fmt, ... );
  27.  
  28. /*-------------------- function prototypes in uw_vid.c ---------------------*/
  29. void set_25_rows();
  30. int get_num_rows();
  31. void get_v_mode();
  32. void init_video(int cols, int rows);
  33. void set_vid_addr( int segment, int offset );
  34. void force_video(int force_mode, int cols, int rows);
  35. void end_video();
  36. void wn_move( int col, int row, WINDOW *wnp );
  37. uchar swap_nibbles( uchar c );
  38. uchar get_att( uchar att );
  39.  
  40. /*--------------------- function prototypes in uw_ch.c ---------------------*/
  41. void wn_ch( int c, WINDOW *wnp );
  42. uchar wn_och( WINDOW *wnp );
  43. void wn_qch( int cnt, uchar c, WINDOW *wnp );
  44.  
  45. /*--------------------- function prototypes in uw_st.c ---------------------*/
  46. void wn_st( char *s, WINDOW *wnp );
  47. void wn_st_qty( char *s, int qty, WINDOW *wnp );
  48. void wn_plst( int col, int line, char *s, WINDOW *wnp );
  49.  
  50. /*-------------------- function prototypes in uw_mask.c --------------------*/
  51. void adjust_mask_col( int x_pos, int y_min, int y_max, int amount, WINDOW *wnp );
  52. void adjust_mask_row( int y_pos, int x_min, int x_max, int amount, WINDOW *wnp );
  53. void set_mask( int mode, WINDOW *wnp1, WINDOW *wnp2 );
  54. void clear_mask( WINDOW *wnp );
  55.  
  56. /*--------------------- function prototypes in uw_bdr.c --------------------*/
  57. void wn_co( int cnt, uchar c, WINDOW *wnp );
  58. void wn_border( WINDOW *wnp );
  59. void wn_hline(int row, int style, WINDOW *wnp);
  60. void wn_vline(int col, int style, WINDOW *wnp);
  61.  
  62. /*--------------------- function prototypes in uw_ll.c ---------------------*/
  63. int _csr_adj( WINDOW *wnp );
  64. void _scroll( int dir, WINDOW *wnp );
  65. uchar far *_calc_scr_addr(WINDOW *wnp);
  66. uchar *_calc_buff_addr(WINDOW *wnp);
  67. uchar *_calc_mask_addr(WINDOW *wnp);
  68. void _calc_all_addr(uchar far **scr, uchar **buff, uchar **mask, WINDOW *wnp);
  69.  
  70. /*--------------------- function prototypes in uw_wn.c ---------------------*/
  71. int  wn_create( int x_min, int y_min, int x_max, int y_max,
  72.                 int bdr, int mode, WINDOW *wnp );
  73. void wn_destroy( WINDOW *wnp );
  74. void wn_set( WINDOW *wnp );
  75. void wn_clear( WINDOW *wnp );
  76.  
  77. /*-------------------- function prototypes in uw_csr.c ---------------------*/
  78. void rd_csr( int *col, int *line );
  79. void mv_csr( int col, int line );
  80. void csr_style( int style );
  81. void csr_hide();
  82. void csr_show();
  83. void pl_csr( WINDOW *wnp );
  84.  
  85. /*------------------- function prototypes in uw_rfsh.c ---------------------*/
  86. void wn_io( int dir, int area, WINDOW *wnp );
  87. void wn_rfsh_line( int line, WINDOW *wnp );
  88. void wn_rfsh_col( int col, WINDOW *wnp );
  89.  
  90. /*------------------- function prototypes in uw_menu.c ---------------------*/
  91. void menu_st( MENU *mnp, int csr, int inx);
  92. void menu_create(int x_min, int y_min, int x_max, int y_max, int direction,
  93.                         int back_att, int bdr_att, int csr_att, int first_att,
  94.                         int bdr, int type, MENU *mnp);
  95. void item_add( char *entry, int id, int first_pos, MENU *mnp );
  96. void menu_set( MENU *mnp );
  97. void menu_restore( MENU *mnp );
  98. void menu_destroy( MENU *mnp );
  99. void decrement_csr( int *csr, int min, int max);
  100. void increment_csr( int *csr, int min, int max);
  101. int menu_horiz( MENU *mnp, int proc_mode );
  102. int menu_vert( MENU *mnp, int proc_mode );
  103. int do_menu( MENU *mnp, int proc_mode );
  104. int menu_system( MENU *top_mnp, MENU *dropmenu[], int draw_top );
  105.  
  106. /*------------------ function prototypes in uw_entry.c ---------------------*/
  107. void disp_entry( int c, int r, int m_att, char *s, char *m, WINDOW *wnp );
  108. void g_insert( char *s, char *m, char *t, int pos );
  109. void g_delete( char *s, char *m, char *t, int pos );
  110. void add_mask( char *s, char *m, char *t );
  111. void rmv_mask( char *s, char *t );
  112. int validate( char *c, char t );
  113. void strip_entry( char *s, char *m );
  114. int wn_gets( char *str, char *mask, char *template, int m_att,
  115.                     int strip_mode, WINDOW *wnp );
  116.  
  117. /*------------------ function prototypes in uw_event.c ---------------------*/
  118. void m_reset(M_RESET *m);
  119. void m_colrange( int col_min, int col_max );
  120. void m_rowrange( int row_min, int row_max );
  121. void init_mouse();
  122. void end_mouse();
  123. void m_show();
  124. void m_hide();
  125. void m_pos( M_LOC *m );
  126. void m_moveto( int col, int row );
  127. void m_pressed( int button, M_LOC *m );
  128. void m_released( int button, M_LOC *m );
  129. void m_textcursor(int curstype, unsigned arg1, unsigned arg2);
  130. void m_motion( M_MOVE *m );
  131. void m_lpen_on();
  132. void m_lpen_off();
  133. void m_ratio( int horiz, int vert );
  134. void wait_ticks( clock_t ticks );
  135. int get_key();
  136. int check_key();
  137. int event_pending();
  138. void set_idle_func( int (*func_ptr)() );
  139. void wait_event();
  140.  
  141. /*-------------------- function prototypes in uw_win.c ---------------------*/
  142. void reset_all_masks();
  143. void refresh_desktop();
  144. void refresh_column( int col );
  145. void refresh_row( int row );
  146. void refresh_rect( RECT r );
  147. void add_wn_mask( WINDOW *wnp );
  148. void remove_wn_mask( WINDOW *wnp );
  149. void col_wn_mask( int x_pos, int y_min, int y_max, int amount );
  150. void row_wn_mask( int y_pos, int x_min, int x_max, int amount );
  151. void set_window_attr();
  152. WINDOW *end_window( WINDOW *wnp );
  153. WINDOW *cr_inwindow( int col, int row );
  154. WINDOW *add_window( WINDOW *wnp );
  155. int remove_window( WINDOW *wnp );
  156. void pull_to_top( WINDOW *this );
  157. int make_top_window( WINDOW *wnp );
  158. void mask_flags_on();
  159. void move_wn_left( int cols, WINDOW *wnp );
  160. void move_wn_right( int cols, WINDOW *wnp );
  161. void move_wn_up( int rows, WINDOW *wnp );
  162. void move_wn_down( int rows, WINDOW *wnp );
  163. void set_rect(RECT *rectp, int x1, int y1, int x2, int y2);
  164. int rect_equal(RECT r1, RECT r2);
  165. int rect_enclosed(RECT *r1, RECT *r2);
  166. int rect_overlap(RECT *r1, RECT *r2);
  167. void offset_rect(RECT *rectp, int col, int row);
  168. int cr_inrect(int col, int row, RECT rect);
  169.  
  170. /*-------------------- function prototypes in uw_win.c ---------------------*/
  171. void check_desq();
  172. void mode43();
  173. void mode25();
  174.  
  175. /**** END OF FILE ****/
  176.  
  177.  
  178.