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

  1. /* 
  2.  * ThumbWheel.h - public header file for thumbwheel widget
  3.  */
  4.  
  5. #ifndef _SG_ThumbWheel_h
  6. #define _SG_ThumbWheel_h
  7.  
  8.  
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12.  
  13. #ifndef SgNlowerBound
  14. #define SgNlowerBound "minimum"
  15. #endif
  16. /* SgNlowerBound is OBSOLETE!  Please use XmNminimum! */
  17.  
  18. #ifndef SgNupperBound
  19. #define SgNupperBound "maximum"
  20. #endif
  21. /* SgNupperBound is OBSOLETE!  Please use XmNminimum! */
  22.  
  23. #ifndef SgNhomePosition
  24. #define SgNhomePosition "homePosition"
  25. #endif
  26. #ifndef SgNangleRange
  27. #define SgNangleRange "angleRange"
  28. #endif
  29. #ifndef SgNunitsPerRotation
  30. #define SgNunitsPerRotation "unitsPerRotation"
  31. #endif
  32. #ifndef SgNanimate
  33. #define SgNanimate "animate"
  34. #endif
  35. #ifndef SgNshowHomeButton
  36. #define SgNshowHomeButton "showHomeButton"
  37. #endif
  38.  
  39.  
  40. #ifndef SgCLowerBound
  41. #define SgCLowerBound "Minimum"
  42. #endif
  43. /* SgCLowerBound is OBSOLETE!  Please use XmCMinimum! */
  44.  
  45. #ifndef SgCUpperBound
  46. #define SgCUpperBound "Maximum"
  47. #endif
  48. /* SgCUpperBound is OBSOLETE!  Please use XmCMaximum! */
  49.  
  50. #ifndef SgCHomePosition
  51. #define SgCHomePosition "HomePosition"
  52. #endif
  53. #ifndef SgCAngleRange
  54. #define SgCAngleRange "AngleRange"
  55. #endif
  56. #ifndef SgCUnitsPerRotation
  57. #define SgCUnitsPerRotation "UnitsPerRotation"
  58. #endif
  59. #ifndef SgCAnimate
  60. #define SgCAnimate "Animate"
  61. #endif
  62. #ifndef SgCShowHomeButton
  63. #define SgCShowHomeButton "ShowHomeButton"
  64. #endif
  65.  
  66.  
  67. extern WidgetClass sgThumbWheelWidgetClass;
  68.  
  69.  
  70. typedef struct _SgThumbWheelClassRec *SgThumbWheelWidgetClass;
  71. typedef struct _SgThumbWheelRec      *SgThumbWheelWidget;
  72.  
  73.  
  74. /********    Public Function Declarations    ********/
  75. #ifdef _NO_PROTO
  76.  
  77. extern Widget SgCreateThumbWheel();
  78. extern void SgThumbWheelGetValue();
  79. extern void SgThumbWheelSetValue();
  80.  
  81. #else
  82.  
  83. extern Widget SgCreateThumbWheel(Widget parent,
  84.                  char *name,
  85.                  ArgList arglist,
  86.                  Cardinal argcount);
  87. extern void SgThumbWheelSetValue(Widget, int);
  88. extern void SgThumbWheelGetValue(Widget, int*);
  89.  
  90. #endif /* _NO_PROTO */
  91. /********    End Public Function Declarations    ********/
  92.  
  93.  
  94. /*
  95.  * Structure for both callbacks (Drag and Value Changed).
  96.  */
  97. typedef struct {
  98.   int reason;
  99.   XEvent *event;
  100.   int value;
  101. } SgThumbWheelCallbackStruct;
  102.  
  103.  
  104. #ifdef __cplusplus
  105. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  106. #endif
  107.  
  108. /* DON'T ADD ANYTHING AFTER THIS #ENDIF */
  109. #endif /* _SG_ThumbWheel_h */
  110.