home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / include / Xm / DrawnBP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-30  |  2.1 KB  |  94 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: DrawnBP.h,v $ $Revision: 10.1 $ $Date: 1994/02/03 15:37:57 $ */
  9. /*
  10. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  11. #ifndef _XmDButtonP_h
  12. #define _XmDButtonP_h
  13.  
  14. #include <Xm/DrawnB.h>
  15. #include <Xm/LabelP.h>
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. /* DrawnButton class structure */
  22.  
  23. typedef struct _XmDrawnButtonClassPart
  24. {
  25.    XtPointer extension;   /* Pointer to extension record */
  26. } XmDrawnButtonClassPart;
  27.  
  28.  
  29. /* Full class record declaration for DrawnButton class */
  30.  
  31. typedef struct _XmDrawnButtonClassRec {
  32.     CoreClassPart      core_class;
  33.     XmPrimitiveClassPart  primitive_class;
  34.     XmLabelClassPart      label_class;
  35.     XmDrawnButtonClassPart drawnbutton_class;
  36. } XmDrawnButtonClassRec;
  37.  
  38.  
  39. externalref  XmDrawnButtonClassRec xmDrawnButtonClassRec;
  40.  
  41.  
  42. /* DrawnButton instance record */
  43.  
  44. typedef struct _XmDrawnButtonPart
  45. {
  46.    Boolean         pushbutton_enabled;
  47.    unsigned char    shadow_type;
  48.    XtCallbackList   activate_callback;
  49.    XtCallbackList   arm_callback;
  50.    XtCallbackList   disarm_callback;
  51.    XtCallbackList   expose_callback;
  52.    XtCallbackList   resize_callback;
  53.  
  54.    Boolean         armed;
  55.    Dimension        old_width;
  56.    Dimension        old_height;
  57.    Dimension        old_shadow_thickness;
  58.    Dimension        old_highlight_thickness;
  59.    XtIntervalId     timer;
  60.    unsigned char    multiClick;         /* KEEP/DISCARD resource */
  61.    int              click_count;
  62.    Time            armTimeStamp;
  63.  
  64. } XmDrawnButtonPart;
  65.  
  66.  
  67. /* Full instance record declaration */
  68.  
  69. typedef struct _XmDrawnButtonRec {
  70.     CorePart         core;
  71.     XmPrimitivePart  primitive;
  72.     XmLabelPart      label;
  73.     XmDrawnButtonPart drawnbutton;
  74. } XmDrawnButtonRec;
  75.  
  76.  
  77. /********    Private Function Declarations    ********/
  78. #ifdef _NO_PROTO
  79.  
  80.  
  81. #else
  82.  
  83.  
  84. #endif /* _NO_PROTO */
  85. /********    End Private Function Declarations    ********/
  86.  
  87.  
  88. #ifdef __cplusplus
  89. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  90. #endif
  91.  
  92. #endif /* _XmDButtonP_h */
  93. /* DON'T ADD ANYTHING AFTER THIS #endif */
  94.