xref: /titanic_50/usr/src/lib/libeti/panel/inc/panel.h (revision abc79d9dd51e98eafb6fc25b4a0b4f66bef40b00)
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
34 extern "C" {
35 #endif
36 
37 typedef struct _obscured_list
38 	{
39 		struct PANEL	*panel_p;
40 		int	start, end;
41 		struct _obscured_list	*next;
42 	} _obscured_list;
43 
44 typedef 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 
58 extern PANEL *new_panel(WINDOW *);
59 extern int del_panel(PANEL *);
60 extern int hide_panel(PANEL *);
61 extern int show_panel(PANEL *);
62 extern int panel_hidden(PANEL *);
63 extern int move_panel(PANEL *, int, int);
64 extern int replace_panel(PANEL *, WINDOW *);
65 extern int top_panel(PANEL *);
66 extern int bottom_panel(PANEL *);
67 extern void update_panels(void);
68 extern WINDOW *panel_window(PANEL *);
69 extern int set_panel_userptr(PANEL *, char *);
70 extern char *panel_userptr(PANEL *);
71 extern PANEL *panel_above(PANEL *);
72 extern PANEL *panel_below(PANEL *);
73 
74 #else	/* old style extern's */
75 
76 extern PANEL *new_panel();
77 extern int del_panel();
78 extern int hide_panel();
79 extern int show_panel();
80 extern int panel_hidden();
81 extern int move_panel();
82 extern int replace_panel();
83 extern int top_panel();
84 extern int bottom_panel();
85 extern void update_panels();
86 extern WINDOW *panel_window();
87 extern int set_panel_userptr();
88 extern char *panel_userptr();
89 extern PANEL *panel_above();
90 extern PANEL *panel_below();
91 
92 #endif	/* __STDC__ */
93 
94 #ifdef	__cplusplus
95 }
96 #endif
97 
98 #endif	/* _PANEL_H */
99