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