1 /* $XConsortium: ButtonP.h /main/5 1995/11/01 11:22:47 rswiston $ */
4 static char SCCSID[] = "OSF/Motif: @(#)ButtonP.h 1.14 95/05/01";
7 /******************************************************************************
8 *******************************************************************************
10 * (c) Copyright 1992 HEWLETT-PACKARD COMPANY
13 *******************************************************************************
14 ******************************************************************************/
20 #include <Xm/GadgetP.h>
21 #include <Xm/ManagerP.h>
23 #if defined(__cplusplus) || defined(c_plusplus)
27 /* Arrow class structure */
29 typedef struct _DtButtonGadgetClassPart
32 } DtButtonGadgetClassPart;
35 /* Full class record declaration for Arrow class */
37 typedef struct _DtButtonGadgetClassRec
39 RectObjClassPart rect_class;
40 XmGadgetClassPart gadget_class;
41 DtButtonGadgetClassPart button_class;
42 } DtButtonGadgetClassRec;
44 externalref DtButtonGadgetClassRec dtButtonGadgetClassRec;
47 /* The button instance record */
49 typedef struct _DtButtonGadgetPart
51 XtCallbackList callback;
61 unsigned char multiClick; /* KEEP/DISCARD resource */
64 Time activateTimeStamp;
67 XtPointer push_function;
68 XtPointer push_argument;
73 Dimension pixmap_width;
74 Dimension pixmap_height;
81 /* Full instance record declaration */
83 typedef struct _DtButtonGadgetRec
86 RectObjPart rectangle;
88 DtButtonGadgetPart button;
91 #define B_Expose(w,e,r) \
92 (w -> core.widget_class->core_class.expose)(w,e,r)
93 #define B_ArmColor(w) (w -> button.arm_color)
94 #define B_CursorFont(w) (w -> button.cursor_font)
95 #define B_Armed(w) (w -> button.armed)
96 #define B_PushFunction(w) (w -> button.push_function)
97 #define B_PushArgument(w) (w -> button.push_argument)
98 #define B_Subpanel(w) (w -> button.subpanel)
99 #define B_Callback(w) (w -> button.callback)
100 #define B_PixmapWidth(w) (w -> button.pixmap_width)
101 #define B_PixmapHeight(w) (w -> button.pixmap_height)
102 #define B_ImageName(w) (w -> button.image_name)
103 #define B_Mask(w) (w -> button.mask)
104 #define B_Pixmap(w) (w -> button.pixmap)
105 #define M_TopShadowColor(w) (w -> manager.top_shadow_color)
106 #define M_BottomShadowColor(w) (w -> manager.bottom_shadow_color)
108 #if defined(__cplusplus) || defined(c_plusplus)
109 } /* Close scope of 'extern "C"' declaration which encloses file. */
112 #endif /* _DtButtonP_h */
113 /* DON'T ADD ANYTHING AFTER THIS #endif */