1 /*
2  * Xaw3dP.h
3  *
4  * Global definitions and declarations. Not for public consumption.
5  */
6 
7 /*********************************************************************
8 Copyright (C) 1992 Kaleb Keithley
9 Copyright (C) 2000, 2003 David J. Hawkey Jr.
10 
11                         All Rights Reserved
12 
13 Permission to use, copy, modify, and distribute this software and
14 its documentation for any purpose and without fee is hereby granted,
15 provided that the above copyright notice appear in all copies and
16 that both that copyright notice and this permission notice appear in
17 supporting documentation, and that the names of the copyright holders
18 not be used in advertising or publicity pertaining to distribution
19 of the software without specific, written prior permission.
20 
21 THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
22 SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
23 FITNESS. IN NO EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER
25 RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF
26 CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
27 CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
28 *********************************************************************/
29 
30 #ifndef _Xaw3dP_h
31 #define _Xaw3dP_h
32 
33 #include <X11/IntrinsicP.h>
34 
35 /* These are set during the build to reflect capability and options. */
36 /* I18n support */
37 /* XPM support */
38 /* gray stipples */
39 /* arrow scrollbars */
40 
41 #ifndef XtX
42 #define XtX(w)			(((RectObj)w)->rectangle.x)
43 #endif
44 #ifndef XtY
45 #define XtY(w)			(((RectObj)w)->rectangle.y)
46 #endif
47 #ifndef XtWidth
48 #define XtWidth(w)		(((RectObj)w)->rectangle.width)
49 #endif
50 #ifndef XtHeight
51 #define XtHeight(w)		(((RectObj)w)->rectangle.height)
52 #endif
53 #ifndef XtBorderWidth
54 #define XtBorderWidth(w)	(((RectObj)w)->rectangle.border_width)
55 #endif
56 
57 #ifdef XAW_GRAY_BLKWHT_STIPPLES
58 extern unsigned long
59 grayPixel(
60     unsigned long,
61     Display *,
62     Screen *
63 );
64 #else
65 #define grayPixel(p, dpy, scn)	(p)
66 #endif
67 
68 #ifdef XAW_MULTIPLANE_PIXMAPS
69 extern Pixmap
70 stipplePixmap(
71     Widget,
72     Pixmap,
73     Colormap,
74     Pixel,
75     unsigned int
76 );
77 #endif
78 
79 #endif	/* _Xaw3dP_h */
80