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 #include <curses.h> 30 31 #ifdef __cplusplus 32 extern "C" { 33 #endif 34 35 typedef struct _obscured_list 36 { 37 struct PANEL *panel_p; 38 int start, end; 39 struct _obscured_list *next; 40 } _obscured_list; 41 42 typedef struct PANEL 43 { 44 WINDOW *win; 45 int wstarty; 46 int wendy; 47 int wstartx; 48 int wendx; 49 struct _obscured_list *obscured; 50 struct PANEL *below, *above; 51 char *user; 52 } PANEL; 53 54 #ifdef __STDC__ 55 56 extern PANEL *new_panel(WINDOW *); 57 extern int del_panel(PANEL *); 58 extern int hide_panel(PANEL *); 59 extern int show_panel(PANEL *); 60 extern int panel_hidden(PANEL *); 61 extern int move_panel(PANEL *, int, int); 62 extern int replace_panel(PANEL *, WINDOW *); 63 extern int top_panel(PANEL *); 64 extern int bottom_panel(PANEL *); 65 extern void update_panels(void); 66 extern WINDOW *panel_window(PANEL *); 67 extern int set_panel_userptr(PANEL *, char *); 68 extern char *panel_userptr(PANEL *); 69 extern PANEL *panel_above(PANEL *); 70 extern PANEL *panel_below(PANEL *); 71 72 #else /* old style extern's */ 73 74 extern PANEL *new_panel(); 75 extern int del_panel(); 76 extern int hide_panel(); 77 extern int show_panel(); 78 extern int panel_hidden(); 79 extern int move_panel(); 80 extern int replace_panel(); 81 extern int top_panel(); 82 extern int bottom_panel(); 83 extern void update_panels(); 84 extern WINDOW *panel_window(); 85 extern int set_panel_userptr(); 86 extern char *panel_userptr(); 87 extern PANEL *panel_above(); 88 extern PANEL *panel_below(); 89 90 #endif /* __STDC__ */ 91 92 #ifdef __cplusplus 93 } 94 #endif 95 96 #endif /* _PANEL_H */ 97