home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume1 / 8710 / pc-curses-doc / 4 / makenew.m < prev    next >
Encoding:
Text File  |  1993-09-02  |  1.1 KB  |  41 lines

  1. NAME
  2.     makenew() newwin() subwin() - create a new window or subwindow
  3.  
  4. SYNOPSIS
  5.     #include <stdio.h>
  6.     #include <curses.h>
  7.     #include <curspriv.h>
  8.  
  9.     static WINDOW *makenew(num_lines, num_columns, begy, begx)
  10.     int num_lines, num_columns, begy, begx;
  11.  
  12.     WINDOW *newwin(num_lines, num_columns, begy, begx)
  13.     int num_lines, num_columns, begy, begx;
  14.  
  15.     WINDOW *subwin(orig, num_lines, num_columns, begy, begx)
  16.     WINDOW *orig;
  17.     int num_lines, num_columns, begy, begx;
  18.  
  19. DESCRIPTION
  20.     makenew() allocates all data for a new window except the  
  21.     actual lines themselves.  
  22.  
  23.     newwin() creates a new window with size num_lines * num_co-  
  24.     lumns, and origin begx,begy relative to the SCREEN. Special  
  25.     case: if num_lines and/or num_columns is 0, the remainder of  
  26.     the screen is used.  
  27.  
  28.     subwin() creates a sub-window in the 'orig' window, with  
  29.     size num_lines * num_columns, and with origin begx, begy  
  30.     relative to the SCREEN. Special case: if num_lines and/or  
  31.     num_columns is 0, the remainder of the original window is  
  32.     used. The subwindow uses the original window's line buffers  
  33.     to store it's own lines.  
  34.  
  35. EXAMPLES
  36.  
  37. SEE ALSO
  38.     malloc(); sizeof(); calloc(); free();  
  39.  
  40. BUGS
  41.