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