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 _XawSmeThreeD_h 27 #define _XawSmeThreeD_h 28 29 /*********************************************************************** 30 * 31 * ThreeD Widget 32 * 33 ***********************************************************************/ 34 35 #include <X11/Xmu/Converters.h> 36 #include <X11/Xaw3dxft/Sme.h> 37 38 /* Parameters: 39 40 Name Class RepType Default Value 41 ---- ----- ------- ------------- 42 shadowWidth ShadowWidth Dimension 2 43 topShadowPixel TopShadowPixel Pixel dynamic 44 bottomShadowPixel BottomShadowPixel Pixel dynamic 45 topShadowContrast TopShadowContrast Int 20 46 bottomShadowContrast BottomShadowContrast Int 40 47 userData UserData XtPointer NULL 48 beNiceToColormap BeNiceToColormap Boolean False 49 50 */ 51 52 #define XtNshadowWidth "shadowWidth" 53 #define XtCShadowWidth "ShadowWidth" 54 #define XtNtopShadowPixel "topShadowPixel" 55 #define XtCTopShadowPixel "TopShadowPixel" 56 #define XtNbottomShadowPixel "bottomShadowPixel" 57 #define XtCBottomShadowPixel "BottomShadowPixel" 58 #define XtNtopShadowContrast "topShadowContrast" 59 #define XtCTopShadowContrast "TopShadowContrast" 60 #define XtNbottomShadowContrast "bottomShadowContrast" 61 #define XtCBottomShadowContrast "BottomShadowContrast" 62 #define XtNbeNiceToColormap "beNiceToColormap" 63 #define XtCBeNiceToColormap "BeNiceToColormap" 64 #define XtNbeNiceToColourmap "beNiceToColormap" 65 #define XtCBeNiceToColourmap "BeNiceToColormap" 66 #define XtNuserData "userData" 67 #define XtCUserData "UserData" 68 69 typedef struct _SmeThreeDClassRec *SmeThreeDObjectClass; 70 typedef struct _SmeThreeDRec *SmeThreeDObject; 71 72 extern WidgetClass smeThreeDObjectClass; 73 74 _XFUNCPROTOBEGIN 75 76 extern void XawSme3dComputeTopShadowRGB ( 77 Widget /* new */, 78 XColor* /* xcol_out */ 79 ); 80 81 extern void XawSme3dComputeBottomShadowRGB ( 82 Widget /* new */, 83 XColor* /* xcol_out */ 84 ); 85 86 _XFUNCPROTOEND 87 88 #endif /* _XawSmeThreeD_h */ 89