home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / PushBP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  2.6 KB  |  108 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2.3
  7. */ 
  8. /*   $RCSfile: PushBP.h,v $ $Revision: 10.2 $ $Date: 1994/02/27 09:59:20 $ */
  9. /*
  10. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  11. /*
  12. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  13. /*
  14. *  (c) Copyright 1988 MASSACHUSETTS INSTITUTE OF TECHNOLOGY  */
  15. /*
  16. *  (c) Copyright 1988 MICROSOFT CORPORATION */
  17. #ifndef _XmPButtonP_h
  18. #define _XmPButtonP_h
  19.  
  20. #include <Xm/PushB.h>
  21. #include <Xm/LabelP.h>
  22.  
  23. #ifdef __cplusplus
  24. extern "C" {
  25. #endif
  26.  
  27. /* PushButton class structure */
  28.  
  29. typedef struct _XmPushButtonClassPart
  30. {
  31.    XtPointer extension;   /* Pointer to extension record */
  32. } XmPushButtonClassPart;
  33.  
  34.  
  35. /* Full class record declaration for PushButton class */
  36.  
  37. typedef struct _XmPushButtonClassRec {
  38.     CoreClassPart      core_class;
  39.     XmPrimitiveClassPart  primitive_class;
  40.     XmLabelClassPart      label_class;
  41.     XmPushButtonClassPart pushbutton_class;
  42. } XmPushButtonClassRec;
  43.  
  44.  
  45. externalref XmPushButtonClassRec xmPushButtonClassRec;
  46.  
  47. /* PushButton instance record */
  48.  
  49. typedef struct _XmPushButtonPart
  50. {
  51.    Boolean         fill_on_arm;
  52.    Dimension        show_as_default;
  53.    Pixel        arm_color;
  54.    Pixmap        arm_pixmap;
  55.    XtCallbackList   activate_callback;
  56.    XtCallbackList   arm_callback;
  57.    XtCallbackList   disarm_callback;
  58.  
  59.    Boolean         armed;
  60.    Pixmap        unarm_pixmap;
  61.    GC               fill_gc;
  62.    GC               background_gc;
  63.    XtIntervalId     timer;    
  64.    unsigned char    multiClick;        /* KEEP/DISCARD resource */
  65.    int            click_count;
  66.    Time            armTimeStamp;
  67.    Boolean      compatible;   /* if false it is Motif 1.1 else Motif 1.0  */
  68.    Dimension    default_button_shadow_thickness;  
  69.         /* New resource - always add it
  70.                     to widgets dimension. */
  71. #ifdef WINTIF
  72.    Boolean      show_dashed_border;
  73. #endif
  74.  
  75. } XmPushButtonPart;
  76.  
  77.  
  78. /* Full instance record declaration */
  79.  
  80. typedef struct _XmPushButtonRec {
  81.     CorePart         core;
  82.     XmPrimitivePart  primitive;
  83.     XmLabelPart      label;
  84.     XmPushButtonPart pushbutton;
  85. } XmPushButtonRec;
  86.  
  87.  
  88. /********    Private Function Declarations    ********/
  89. #ifdef _NO_PROTO
  90.  
  91. extern void _XmClearBCompatibility() ;
  92.  
  93. #else
  94.  
  95. extern void _XmClearBCompatibility( 
  96.                         Widget pb) ;
  97.  
  98. #endif /* _NO_PROTO */
  99. /********    End Private Function Declarations    ********/
  100.  
  101.  
  102. #ifdef __cplusplus
  103. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  104. #endif
  105.  
  106. #endif /* _XmPButtonP_h */
  107. /* DON'T ADD ANYTHING AFTER THIS #endif */
  108.