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 / Sgm / ZoomBarP.h.z / ZoomBarP.h
C/C++ Source or Header  |  1996-03-14  |  2KB  |  74 lines

  1. #ifndef _SGZOOMBARP_H_
  2. #define _SGZOOMBARP_H_
  3.  
  4. #include <Sgm/ZoomBar.h>
  5.  
  6. #ifdef __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. /* ZoomBar class structure */
  11.  
  12. typedef struct _SgZoomBarClassPart
  13. {
  14.    int foo;
  15. #ifdef sgi
  16. /* Allow future extensions without breaking shared library compatibility */
  17.    caddr_t _SG_vendorExtension;
  18. #endif /* sgi */
  19. } SgZoomBarClassPart;
  20.  
  21.  
  22. /* Full class record declaration for ZoomBar class */
  23.  
  24. typedef struct _SgZoomBarClassRec {
  25.     CoreClassPart      core_class;
  26.     XmPrimitiveClassPart  primitive_class;
  27.    SgZoomBarClassPart    zoombar_class;
  28. } SgZoomBarClassRec;
  29.  
  30.  
  31. externalref SgZoomBarClassRec sgZoomBarClassRec;
  32.  
  33. /* ZoomBar instance record */
  34.  
  35. typedef struct _SgZoomBarPart
  36. {
  37.    XtCallbackList   activate_callback;
  38.    XtCallbackList   arm_callback;
  39.    XtCallbackList   disarm_callback;
  40.  
  41.    Boolean         armed;
  42.    int            click_count;
  43.    
  44. /* Below here is stuff added for ZoomBar */
  45.  
  46.    Dimension *      section_widths;       /* array which divides up button */
  47.    int              section_count;      /* number of divisions in section_widths*/
  48.    int              pushed_section;      /* the section which was last pushed */
  49.    int              located_section;      /* the section which was last located */
  50.  
  51. #ifdef sgi
  52. /* Allow future extensions without breaking shared library compatibility */
  53.    caddr_t _SG_vendorExtension;
  54. #endif /* sgi */
  55. } SgZoomBarPart;
  56.  
  57.  
  58. /* Full instance record declaration */
  59.  
  60. typedef struct _SgZoomBarRec {
  61.     CorePart         core;
  62.     XmPrimitivePart  primitive;
  63.     SgZoomBarPart    zoomBar;
  64. } SgZoomBarRec;
  65.  
  66.  
  67. #ifdef __cplusplus
  68. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  69. #endif
  70.  
  71. #endif /* _SGZOOMBUTTONP_H_ */
  72. /* DON'T ADD ANYTHING AFTER THIS #endif */
  73.  
  74.