pub fn newpad(size: Size) -> Result<WINDOW, NCurseswError>
Expand description
The newpad()
routine creates and returns a pointer to a new pad data
structure with the given size
. A pad is like a window, except that it
is not restricted by the screen size, and is not necessarily associated
with a particular part of the screen. Pads can be used when a large
window is needed, and only a part of the window will be on the screen at
one time. Automatic refreshes of pads (e.g., from scrolling or echoing
of input) do not occur.
It is not legal to call wrefresh()
with a pad as an argument; the
routines prefresh()
or pnoutrefresh()
should be called instead.
Note that these routines require additional parameters to specify the
part of the pad to be displayed and the location on the screen to be
used for the display.