1 /* Generated by wbuild from "Common.w" 2 ** (generator version $Revision: 2.5 $ of $Date: 94/07/29 15:31:49 $) 3 */ 4 #ifndef _XfwfCommonP_H_ 5 #define _XfwfCommonP_H_ 6 #include <X11/CompositeP.h> 7 #include <Xfwf/Common.h> 8 #define max(a, b) ((a )>(b )?(a ):(b )) 9 10 11 #define min(a, b) ((a )<(b )?(a ):(b )) 12 13 14 #define abs(a) ((a )<0 ?-(a ):(a )) 15 16 17 typedef void (*compute_inside_Proc)( 18 #if NeedFunctionPrototypes 19 Widget,Position *,Position *,Dimension *,Dimension * 20 #endif 21 ); 22 #define XtInherit_compute_inside ((compute_inside_Proc) _XtInherit) 23 typedef Dimension (*total_frame_width_Proc)( 24 #if NeedFunctionPrototypes 25 Widget 26 #endif 27 ); 28 #define XtInherit_total_frame_width ((total_frame_width_Proc) _XtInherit) 29 typedef void (*highlight_border_Proc)( 30 #if NeedFunctionPrototypes 31 Widget 32 #endif 33 ); 34 #define XtInherit_highlight_border ((highlight_border_Proc) _XtInherit) 35 typedef void (*unhighlight_border_Proc)( 36 #if NeedFunctionPrototypes 37 Widget 38 #endif 39 ); 40 #define XtInherit_unhighlight_border ((unhighlight_border_Proc) _XtInherit) 41 typedef Boolean (*would_accept_focus_Proc)( 42 #if NeedFunctionPrototypes 43 Widget 44 #endif 45 ); 46 #define XtInherit_would_accept_focus ((would_accept_focus_Proc) _XtInherit) 47 typedef void (*traverse_Proc)( 48 #if NeedFunctionPrototypes 49 Widget,TraversalDirection ,Widget ,Time * 50 #endif 51 ); 52 #define XtInherit_traverse ((traverse_Proc) _XtInherit) 53 typedef Boolean (*lighter_color_Proc)( 54 #if NeedFunctionPrototypes 55 Widget,Pixel ,Pixel * 56 #endif 57 ); 58 #define XtInherit_lighter_color ((lighter_color_Proc) _XtInherit) 59 typedef Boolean (*darker_color_Proc)( 60 #if NeedFunctionPrototypes 61 Widget,Pixel ,Pixel * 62 #endif 63 ); 64 #define XtInherit_darker_color ((darker_color_Proc) _XtInherit) 65 66 typedef struct { 67 /* methods */ 68 compute_inside_Proc compute_inside; 69 total_frame_width_Proc total_frame_width; 70 highlight_border_Proc highlight_border; 71 unhighlight_border_Proc unhighlight_border; 72 would_accept_focus_Proc would_accept_focus; 73 traverse_Proc traverse; 74 lighter_color_Proc lighter_color; 75 darker_color_Proc darker_color; 76 /* class variables */ 77 XtTranslations traversal_trans; 78 } XfwfCommonClassPart; 79 80 typedef struct _XfwfCommonClassRec { 81 CoreClassPart core_class; 82 CompositeClassPart composite_class; 83 XfwfCommonClassPart xfwfCommon_class; 84 } XfwfCommonClassRec; 85 86 typedef struct { 87 /* resources */ 88 Boolean traversalOn; 89 Dimension highlightThickness; 90 Pixel highlightColor; 91 Pixmap highlightPixmap; 92 XtCallbackList nextTop; 93 XtPointer userData; 94 /* private state */ 95 Boolean traversal_focus; 96 GC bordergc; 97 } XfwfCommonPart; 98 99 typedef struct _XfwfCommonRec { 100 CorePart core; 101 CompositePart composite; 102 XfwfCommonPart xfwfCommon; 103 } XfwfCommonRec; 104 105 externalref XfwfCommonClassRec xfwfCommonClassRec; 106 107 #endif /* _XfwfCommonP_H_ */ 108