1 /*
2 * $KK: ThreeDP.h,v 0.3 92/11/04 xx:xx:xx keithley Exp $
3 */
4 /* REMODIFIED FOR N*XTSTEP LOOK	 				*/
5 /* Modifications Copyright (c) 1996 by Alfredo Kojima		*/
6 /***********************************************************
7 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
8 and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
9 Copyright 1992 by Kaleb Keithley
10 
11                         All Rights Reserved
12 
13 Permission to use, copy, modify, and distribute this software and its
14 documentation for any purpose and without fee is hereby granted,
15 provided that the above copyright notice appear in all copies and that
16 both that copyright notice and this permission notice appear in
17 supporting documentation, and that the names of Digital, MIT, or Kaleb
18 Keithley not be used in advertising or publicity pertaining to distribution
19 of the software without specific, written prior permission.
20 
21 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
22 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
23 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
24 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
25 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
26 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
27 SOFTWARE.
28 
29 ******************************************************************/
30 
31 #ifndef _ThreeDP_h
32 #define _ThreeDP_h
33 
34 #include <X11/neXtaw/ThreeD.h>
35 #include <X11/neXtaw/SimpleP.h>
36 
37 #define XtRRelief "Relief"
38 #define XtRBevel "Bevel"
39 
40 typedef struct {
41     Dimension	shadow_width;
42     Pixel	top_shadow_pixel;
43     Pixel	bot_shadow_pixel;
44     Pixel	top_half_shadow_pixel;
45     Pixel	bot_half_shadow_pixel;
46     Pixmap	top_shadow_pxmap;
47     Pixmap	bot_shadow_pxmap;
48     Pixmap	top_half_shadow_pxmap;
49     Pixmap	bot_half_shadow_pxmap;
50     int		top_shadow_contrast;
51     int		bot_shadow_contrast;
52     GC		top_shadow_GC;
53     GC		bot_shadow_GC;
54     GC		top_half_shadow_GC;
55     GC		bot_half_shadow_GC;
56     XtPointer	user_data;
57     Boolean	be_nice_to_cmap;
58     XtRelief   	relief;
59     XtBevel	bevel;
60   } ThreeDPart;
61 
62 /* Full instance record declaration */
63 typedef struct _ThreeDRec {
64     CorePart	core;
65     SimplePart	simple;
66     ThreeDPart	threeD;
67   } ThreeDRec;
68 
69 typedef struct {
70     void (*shadowdraw)();
71   } ThreeDClassPart;
72 
73 #define XtInheritXaw3dShadowDraw ((void (*)())_XtInherit)
74 
75 /* Full class record declaration. */
76 typedef struct _ThreeDClassRec {
77     CoreClassPart	core_class;
78     SimpleClassPart	simple_class;
79     ThreeDClassPart	threeD_class;
80   } ThreeDClassRec;
81 
82 /* Class pointer. */
83 extern ThreeDClassRec threeDClassRec;
84 
85 #endif /* _ThreeDP_h */
86