xref: /titanic_52/usr/src/lib/libeti/panel/inc/private.h (revision bdfc6d18da790deeec2e0eb09c625902defe2498)
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 /*
27  *      Copyright (c) 1997, by Sun Microsystems, Inc.
28  *      All rights reserved.
29  */
30 
31 #ifndef _PRIVATE_H
32 #define	_PRIVATE_H
33 
34 #pragma ident	"%Z%%M%	%I%	%E% SMI"	/* SVr4.0 1.1	*/
35 
36 #ifdef	__cplusplus
37 extern "C" {
38 #endif
39 
40 #ifndef PANELS_H
41 #define	PANELS_H
42 
43 #include "panel.h"
44 
45 #define	_panels_intersect(p1, p2)	(!((p1)->wstarty > (p2)->wendy || \
46 					(p1)->wendy < (p2)->wstarty || \
47 					(p1)->wstartx > (p2)->wendx || \
48 					(p1)->wendx < (p2)->wstartx))
49 
50 extern	PANEL	*_Bottom_panel;
51 extern	PANEL	*_Top_panel;
52 
53 extern	int	_Panel_cnt;
54 
55 extern void _intersect_panel(PANEL *);
56 extern void _remove_overlap(PANEL *);
57 extern int _alloc_overlap(int);
58 extern void _free_overlap(_obscured_list *);
59 extern _obscured_list *_unlink_obs(PANEL *, PANEL *);
60 
61 #endif
62 
63 #ifdef	__cplusplus
64 }
65 #endif
66 
67 #endif	/* _PRIVATE_H */
68