xref: /illumos-gate/usr/src/lib/libeti/panel/inc/private.h (revision 1da57d551424de5a9d469760be7c4b4d4f10a755)
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 #ifdef	__cplusplus
35 extern "C" {
36 #endif
37 
38 #ifndef PANELS_H
39 #define	PANELS_H
40 
41 #include "panel.h"
42 
43 #define	_panels_intersect(p1, p2)	(!((p1)->wstarty > (p2)->wendy || \
44 					(p1)->wendy < (p2)->wstarty || \
45 					(p1)->wstartx > (p2)->wendx || \
46 					(p1)->wendx < (p2)->wstartx))
47 
48 extern	PANEL	*_Bottom_panel;
49 extern	PANEL	*_Top_panel;
50 
51 extern	int	_Panel_cnt;
52 
53 extern void _intersect_panel(PANEL *);
54 extern void _remove_overlap(PANEL *);
55 extern int _alloc_overlap(int);
56 extern void _free_overlap(_obscured_list *);
57 extern _obscured_list *_unlink_obs(PANEL *, PANEL *);
58 
59 #endif
60 
61 #ifdef	__cplusplus
62 }
63 #endif
64 
65 #endif	/* _PRIVATE_H */
66