]> ncurses.scripts.mit.edu Git - ncurses.git/blob - Ada95/html/man/wresize.3x.html
ncurses 5.0
[ncurses.git] / Ada95 / html / man / wresize.3x.html
1 <HTML>
2 <BODY>
3 <PRE>
4        <STRONG>wresize</STRONG> - resize a curses window
5
6
7 </PRE>
8 <H2>SYNOPSIS</H2><PRE>
9        <STRONG>#include</STRONG> <STRONG><curses.h></STRONG>
10
11        <STRONG>int</STRONG> <STRONG>wresize(WINDOW</STRONG> <STRONG>*win,</STRONG> <STRONG>int</STRONG> <STRONG>lines,</STRONG> <STRONG>int</STRONG> <STRONG>columns);</STRONG>
12
13
14 </PRE>
15 <H2>DESCRIPTION</H2><PRE>
16        The  <STRONG>wresize</STRONG>  function  reallocates storage for an <STRONG>ncurses</STRONG>
17        window to adjust its dimensions to the  specified  values.
18        If either dimension is larger than the current values, the
19        window's data is filled with blanks that have the  current
20        background  rendition  (as  set  by <STRONG>wbkgndset</STRONG>) merged into
21        them.
22
23
24 </PRE>
25 <H2>RETURN VALUE</H2><PRE>
26        The function returns the integer <STRONG>ERR</STRONG> upon failure  and  <STRONG>OK</STRONG>
27        on success.  It will fail if either of the dimensions less
28        than or equal  to  zero,  or  if  an  error  occurs  while
29        (re)allocating memory for the window.
30
31
32 </PRE>
33 <H2>NOTES</H2><PRE>
34        The only restriction placed on the dimensions is that they
35        be greater than zero.  The dimensions are not compared  to
36        <STRONG>curses</STRONG>   screen   dimensions  to  simplify  the  logic  of
37        <STRONG>resizeterm</STRONG>.  The caller  must  ensure  that  the  window's
38        dimensions fit within the actual screen dimensions.
39
40
41 </PRE>
42 <H2>SEE ALSO</H2><PRE>
43        <STRONG><A HREF="resizeterm.3x.html">resizeterm(3X)</A></STRONG>.
44
45
46 </PRE>
47 <H2>AUTHOR</H2><PRE>
48        Thomas Dickey (from an equivalent function written in 1988
49        for BSD curses).
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68 </PRE>
69 </BODY>
70 </HTML>