xref: /netbsd-src/lib/libcurses/PSD.doc/win_st.c (revision eb7c1594f145c931049e1fd9eb056a5987e87e59)
1*eb7c1594Sagc .\"	$NetBSD: win_st.c,v 1.5 2003/08/07 16:44:29 agc Exp $
2b51ed80fSperry .\"
3b4beac8fScgd .\" Copyright (c) 1980, 1993
4b4beac8fScgd .\"	 The Regents of the University of California.  All rights reserved.
5b4beac8fScgd .\"
6b4beac8fScgd .\" Redistribution and use in source and binary forms, with or without
7b4beac8fScgd .\" modification, are permitted provided that the following conditions
8b4beac8fScgd .\" are met:
9b4beac8fScgd .\" 1. Redistributions of source code must retain the above copyright
10b4beac8fScgd .\"    notice, this list of conditions and the following disclaimer.
11b4beac8fScgd .\" 2. Redistributions in binary form must reproduce the above copyright
12b4beac8fScgd .\"    notice, this list of conditions and the following disclaimer in the
13b4beac8fScgd .\"    documentation and/or other materials provided with the distribution.
14*eb7c1594Sagc .\" 3. Neither the name of the University nor the names of its contributors
15b4beac8fScgd .\"    may be used to endorse or promote products derived from this software
16b4beac8fScgd .\"    without specific prior written permission.
17b4beac8fScgd .\"
18b4beac8fScgd .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19b4beac8fScgd .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20b4beac8fScgd .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21b4beac8fScgd .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22b4beac8fScgd .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23b4beac8fScgd .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24b4beac8fScgd .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25b4beac8fScgd .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26b4beac8fScgd .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27b4beac8fScgd .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28b4beac8fScgd .\" SUCH DAMAGE.
29b4beac8fScgd .\"
30d29088daScgd .\"	@(#)win_st.c	8.1 (Berkeley) 6/8/93
31b4beac8fScgd .\"
32b4beac8fScgd # define	WINDOW	struct _win_st
33b4beac8fScgd 
34b4beac8fScgd struct _win_st {
35b4beac8fScgd 	short		_cury, _curx;
36b4beac8fScgd 	short		_maxy, _maxx;
37b4beac8fScgd 	short		_begy, _begx;
38b4beac8fScgd 	short		_flags;
39b4beac8fScgd 	short		_ch_off;
40b4beac8fScgd 	bool		_clear;
41b4beac8fScgd 	bool		_leave;
42b4beac8fScgd 	bool		_scroll;
43b4beac8fScgd 	char		**_y;
44b4beac8fScgd 	short		*_firstch;
45b4beac8fScgd 	short		*_lastch;
46b4beac8fScgd 	struct _win_st	*_nextp, *_orig;
47b4beac8fScgd };
48b4beac8fScgd 
49b4beac8fScgd # define	_ENDLINE	001
50b4beac8fScgd # define	_FULLWIN	002
51b4beac8fScgd # define	_SCROLLWIN	004
52b4beac8fScgd # define	_FLUSH		010
53b4beac8fScgd # define	_FULLLINE	020
54b4beac8fScgd # define	_IDLINE		040
55b4beac8fScgd # define	_STANDOUT	0200
56b4beac8fScgd # define	_NOCHANGE	-1
57