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