00001 /* 00002 * $KK: SmeThreeDP.h,v 0.3 92/11/04 xx:xx:xx keithley Exp $ 00003 */ 00004 00005 /*********************************************************** 00006 Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts, 00007 and the Massachusetts Institute of Technology, Cambridge, Massachusetts. 00008 Copyright 1992 by Kaleb Keithley 00009 00010 All Rights Reserved 00011 00012 Permission to use, copy, modify, and distribute this software and its 00013 documentation for any purpose and without fee is hereby granted, 00014 provided that the above copyright notice appear in all copies and that 00015 both that copyright notice and this permission notice appear in 00016 supporting documentation, and that the names of Digital, MIT, or Kaleb 00017 Keithley not be used in advertising or publicity pertaining to distribution 00018 of the software without specific, written prior permission. 00019 00020 DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 00021 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL 00022 DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR 00023 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 00024 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 00025 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 00026 SOFTWARE. 00027 00028 ******************************************************************/ 00029 00030 #ifndef _XawSmeThreeDP_h 00031 #define _XawSmeThreeDP_h 00032 00033 #include <X11/Xaw3d/SmeThreeD.h> 00034 #include <X11/Xaw3d/SmeP.h> 00035 00036 typedef struct { 00037 Dimension shadow_width; 00038 Pixel top_shadow_pixel; 00039 Pixel bot_shadow_pixel; 00040 Pixmap top_shadow_pxmap; 00041 Pixmap bot_shadow_pxmap; 00042 int top_shadow_contrast; 00043 int bot_shadow_contrast; 00044 GC top_shadow_GC; 00045 GC bot_shadow_GC; 00046 GC erase_GC; 00047 XtPointer user_data; 00048 Boolean be_nice_to_cmap; 00049 Boolean shadowed; 00050 } SmeThreeDPart; 00051 00052 /* Full instance record declaration */ 00053 typedef struct _SmeThreeDRec { 00054 ObjectPart object; 00055 RectObjPart rectangle; 00056 SmePart sme; 00057 SmeThreeDPart sme_threeD; 00058 } SmeThreeDRec; 00059 00060 typedef void (*XawSme3dShadowDrawProc)( 00061 #if NeedFunctionPrototypes 00062 Widget 00063 #endif 00064 ); 00065 00066 typedef struct { 00067 XawSme3dShadowDrawProc shadowdraw; 00068 } SmeThreeDClassPart; 00069 00070 /* Full class record declaration. */ 00071 typedef struct _SmeThreeDClassRec { 00072 RectObjClassPart rect_class; 00073 SmeClassPart sme_class; 00074 SmeThreeDClassPart sme_threeD_class; 00075 } SmeThreeDClassRec; 00076 00077 /* Class pointer. */ 00078 extern SmeThreeDClassRec smeThreeDClassRec; 00079 00080 #define XtInheritXawSme3dShadowDraw ((XawSme3dShadowDrawProc) _XtInherit) 00081 00082 #endif /* _XawSmeThreeDP_h */
1.5.1