AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

VPRINTF ( 3S ) VPRINTF ( 3S ) } SEE ALSO printf(3S), varargs(5). - 2-

WIND ( 3T ) ( AT&T UNIX PC only ) WIND (3T) NAME wind - creates and places a window SYNOPSIS #include int wind(type, height, width , flags, pfont) int type, height, width; short flags; char *pfont[]; DESCRIPTION Wind creates a window that is of height by width characters and loads the window with the fonts listed in pfont. Unlike were ate , wind does not need specific coordinates to create a window but creates one of three types of windows: W _POPUP (inside the existing window), W_SON (overlapping the existing window), or W _NEW (a new window that tries not to overlap the existing window). The three types of windows are described in detail below. W _poPUP makes the new window live "inside" the window wncur. Inside is defined as completely within and centered. Overflow goes down and to the right if possible. W _SON makes the new window on the lower right corner if possible. The overlap is determined based on the size of the window wncur. W_NEW creates a window in a new part of the display, avoiding existing windows. This is slower and should only be used where necessary. EXAMPLES menu_t *m; int height, width, windop, wn; height = 5; width = 10; if ( m - > m_flags & M_ WINSON ) windop = W _SON; else if ( m - > m_fiags & M_ WINNEW ) windop = W _NEW; else windop = W _POPUP; wn = wind (windop, height, width, M_BORDFLAGS, 0 ); m -> m_win = wn; SEE ALSO form(3T), menu(3T), tam(3T), window(7). DIAGNOSTICS If wind returns a positive number, the number is the window - 1-

WIND ( 3T ) ( AT&T UNIX PC only ) WIND (3T)<br />

NAME<br />

wind - creates and places a window<br />

SYNOPSIS<br />

#include <br />

int<br />

wind(type, height, width , flags, pfont)<br />

int type, height, width;<br />

short flags;<br />

char *pfont[];<br />

DESCRIPTION<br />

Wind creates a window that is of height by width characters and<br />

loads the window with the fonts listed in pfont. Unlike were ate ,<br />

wind does not need specific coordinates to create a window but<br />

creates one of three types of windows: W _POPUP (inside the<br />

existing window), W_SON (overlapping the existing window), or<br />

W _NEW (a new window that tries not to overlap the existing window).<br />

The three types of windows are described in detail below.<br />

W _poPUP makes the new window live "inside" the window<br />

wncur. Inside is defined as completely within and centered.<br />

Overflow goes down and to the right if possible.<br />

W _SON makes the new window on the lower right corner if possible.<br />

The overlap is determined based on the size of the window<br />

wncur.<br />

W_NEW creates a window in a new part of the display, avoiding<br />

existing windows. This is slower and should only be used where<br />

necessary.<br />

EXAMPLES<br />

menu_t *m;<br />

int height, width, windop, wn;<br />

height = 5;<br />

width = 10;<br />

if ( m - > m_flags & M_ WINSON )<br />

windop = W _SON;<br />

else if ( m - > m_fiags & M_ WINNEW )<br />

windop = W _NEW;<br />

else windop = W _POPUP;<br />

wn = wind (windop, height, width, M_BORDFLAGS, 0 );<br />

m -> m_win = wn;<br />

SEE ALSO<br />

form(3T), menu(3T), tam(3T), window(7).<br />

DIAGNOSTICS<br />

If wind returns a positive number, the number is the window<br />

- 1-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!