home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / baseline / jove-4.14.6.lha / jove-4.14.6 / wind.h < prev   
C/C++ Source or Header  |  1992-01-10  |  2KB  |  57 lines

  1. /***************************************************************************
  2.  * This program is Copyright (C) 1986, 1987, 1988 by Jonathan Payne.  JOVE *
  3.  * is provided to you without charge, and with no warranty.  You may give  *
  4.  * away copies of JOVE, including sources, provided that this notice is    *
  5.  * included in all the files.                                              *
  6.  ***************************************************************************/
  7.  
  8. struct window {
  9.     Window    *w_prev,    /* circular list */
  10.         *w_next;
  11.     Buffer    *w_bufp;    /* buffer associated with this window */
  12.     Line    *w_top,        /* top line */
  13.         *w_line;    /* current line */
  14.     int    w_char,
  15.         w_height,    /* window height */
  16.         w_topnum,    /* line number of the topline */
  17.         w_dotcol,    /* UpdWindow sets this ... */
  18.         w_dotline,    /* ... and this */
  19.         w_flags,
  20. #define    W_TOPGONE    01
  21. #define    W_CURGONE    02    /* topline (curline) of window has been deleted
  22.                    since the last time a redisplay was called */
  23. #define W_VISSPACE    04
  24. #define W_NUMLINES    010
  25.         w_LRscroll;    /* amount of LeftRight scrolling in window */
  26. #ifdef    MAC
  27.     int    w_topline;    /* row number of top line in window */
  28.     char **w_control;    /* scroll bar for window */
  29. #endif
  30. };
  31.  
  32. extern Window    *fwind,        /* first window in list */
  33.         *curwind;    /* current window */
  34.  
  35. #define one_windp()    (fwind->w_next == fwind)
  36. #define HALF(wp)    (((wp)->w_height - 1) / 2)
  37. #define SIZE(wp)    ((wp)->w_height - 1)
  38.  
  39. extern int
  40.     FLine proto((struct window *w)),
  41.     in_window proto((struct window *windes,struct line *line));
  42.  
  43. extern Window
  44.     *div_wind proto((struct window *wp,int n)),
  45.     *windbp proto((struct buffer *bp));
  46.  
  47. extern void
  48.     CalcWind proto((struct window *w)),
  49.     CentWind proto((struct window *w)),
  50.     SetTop proto((struct window *w,struct line *line)),
  51.     SetWind proto((struct window *new)),
  52.     WindSize proto((struct window *w,int inc)),
  53.     del_wind proto((struct window *wp)),
  54.     pop_wind proto((char *name,int clobber,int btype)),
  55.     tiewind proto((struct window *w,struct buffer *bp)),
  56.     winit proto((void));
  57.