1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License").  You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*	Copyright (c) 1988 AT&T	*/
23/*	  All Rights Reserved  	*/
24
25
26#ifndef	_PANEL_H
27#define	_PANEL_H
28
29#pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.4	*/
30
31#include <curses.h>
32
33#ifdef	__cplusplus
34extern "C" {
35#endif
36
37typedef struct _obscured_list
38	{
39		struct PANEL	*panel_p;
40		int	start, end;
41		struct _obscured_list	*next;
42	} _obscured_list;
43
44typedef struct PANEL
45	{
46		WINDOW	*win;
47		int	wstarty;
48		int	wendy;
49		int	wstartx;
50		int	wendx;
51		struct _obscured_list	*obscured;
52		struct PANEL	*below, *above;
53		char	*user;
54	} PANEL;
55
56#ifdef __STDC__
57
58extern PANEL *new_panel(WINDOW *);
59extern int del_panel(PANEL *);
60extern int hide_panel(PANEL *);
61extern int show_panel(PANEL *);
62extern int panel_hidden(PANEL *);
63extern int move_panel(PANEL *, int, int);
64extern int replace_panel(PANEL *, WINDOW *);
65extern int top_panel(PANEL *);
66extern int bottom_panel(PANEL *);
67extern void update_panels(void);
68extern WINDOW *panel_window(PANEL *);
69extern int set_panel_userptr(PANEL *, char *);
70extern char *panel_userptr(PANEL *);
71extern PANEL *panel_above(PANEL *);
72extern PANEL *panel_below(PANEL *);
73
74#else	/* old style extern's */
75
76extern PANEL *new_panel();
77extern int del_panel();
78extern int hide_panel();
79extern int show_panel();
80extern int panel_hidden();
81extern int move_panel();
82extern int replace_panel();
83extern int top_panel();
84extern int bottom_panel();
85extern void update_panels();
86extern WINDOW *panel_window();
87extern int set_panel_userptr();
88extern char *panel_userptr();
89extern PANEL *panel_above();
90extern PANEL *panel_below();
91
92#endif	/* __STDC__ */
93
94#ifdef	__cplusplus
95}
96#endif
97
98#endif	/* _PANEL_H */
99