home *** CD-ROM | disk | FTP | other *** search
/ IRIS Development Option 6.2 / IRIS_Development_Option_6.2_814-0478-001.iso / dist / motif_dev.idb / usr / include / Xm / ArrowBP.h.z / ArrowBP.h
C/C++ Source or Header  |  1996-03-14  |  2KB  |  100 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. 
  3.  * ALL RIGHTS RESERVED 
  4. */ 
  5. /* 
  6.  * Motif Release 1.2
  7. */ 
  8. /*   $RCSfile: ArrowBP.h,v $ $Revision: 0.5 $ $Date: 1995/01/10 02:01:36 $ */
  9. /*
  10. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  11. #ifndef _XmArrowButtonP_h
  12. #define _XmArrowButtonP_h
  13.  
  14. #include <Xm/ArrowB.h>
  15. #include <Xm/PrimitiveP.h>
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. /*  Arrow class structure  */
  22.  
  23. typedef struct _XmArrowButtonClassPart
  24. {
  25.    XtPointer extension;
  26. #ifdef __sgi /* Allow future extensions without breaking shared library compatibility */
  27.    caddr_t _SG_vendorExtension;
  28. #endif /* __sgi */
  29. } XmArrowButtonClassPart;
  30.  
  31.  
  32. /*  Full class record declaration for Arrow class  */
  33.  
  34. typedef struct _XmArrowButtonClassRec
  35. {
  36.    CoreClassPart            core_class;
  37.    XmPrimitiveClassPart     primitive_class;
  38.    XmArrowButtonClassPart         arrowbutton_class;
  39. } XmArrowButtonClassRec;
  40.  
  41. externalref XmArrowButtonClassRec xmArrowButtonClassRec;
  42.  
  43.  
  44. /*  The ArrowButton instance record  */
  45.  
  46. typedef struct _XmArrowButtonPart
  47. {
  48.    XtCallbackList activate_callback;
  49.    XtCallbackList arm_callback;
  50.    XtCallbackList disarm_callback;
  51.    unsigned char  direction;      /*  the direction the arrow is pointing  */
  52.  
  53.    Boolean selected;
  54.    short        top_count;
  55.    short        cent_count;
  56.    short        bot_count;
  57.    XRectangle * top;
  58.    XRectangle * cent;
  59.    XRectangle * bot;
  60.  
  61.    GC      arrow_GC;      /*  graphics context for arrow drawing   */
  62.    XtIntervalId     timer;    
  63.    unsigned char    multiClick;         /* KEEP/DISCARD resource */
  64.    int              click_count;
  65.    Time            armTimeStamp;
  66.    GC            insensitive_GC; /* graphics context for insensitive arrow drawing */
  67. #ifdef __sgi /* Allow future extensions without breaking shared library compatibility */
  68.    caddr_t _SG_vendorExtension;
  69. #endif /* __sgi */
  70. } XmArrowButtonPart;
  71.  
  72.  
  73. /*  Full instance record declaration  */
  74.  
  75. typedef struct _XmArrowButtonRec
  76. {
  77.    CorePart           core;
  78.    XmPrimitivePart    primitive;
  79.    XmArrowButtonPart    arrowbutton;
  80. } XmArrowButtonRec;
  81.  
  82.  
  83. /********    Private Function Declarations    ********/
  84. #ifdef _NO_PROTO
  85.  
  86.  
  87. #else
  88.  
  89.  
  90. #endif /* _NO_PROTO */
  91. /********    End Private Function Declarations    ********/
  92.  
  93.  
  94. #ifdef __cplusplus
  95. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  96. #endif
  97.  
  98. #endif /* _XmArrowButtonP_h */
  99. /* DON'T ADD ANYTHING AFTER THIS #endif */
  100.