home *** CD-ROM | disk | FTP | other *** search
- NAME
- makenew() newwin() subwin() - create a new window or subwindow
-
- SYNOPSIS
- #include <stdio.h>
- #include <curses.h>
- #include <curspriv.h>
-
- static WINDOW *makenew(num_lines, num_columns, begy, begx)
- int num_lines, num_columns, begy, begx;
-
- WINDOW *newwin(num_lines, num_columns, begy, begx)
- int num_lines, num_columns, begy, begx;
-
- WINDOW *subwin(orig, num_lines, num_columns, begy, begx)
- WINDOW *orig;
- int num_lines, num_columns, begy, begx;
-
- DESCRIPTION
- makenew() allocates all data for a new window except the
- actual lines themselves.
-
- newwin() creates a new window with size num_lines * num_co-
- lumns, and origin begx,begy relative to the SCREEN. Special
- case: if num_lines and/or num_columns is 0, the remainder of
- the screen is used.
-
- subwin() creates a sub-window in the 'orig' window, with
- size num_lines * num_columns, and with origin begx, begy
- relative to the SCREEN. Special case: if num_lines and/or
- num_columns is 0, the remainder of the original window is
- used. The subwindow uses the original window's line buffers
- to store it's own lines.
-
- EXAMPLES
-
- SEE ALSO
- malloc(); sizeof(); calloc(); free();
-
- BUGS
-