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

  1. /* 
  2.  * ThumbWheelP.h - private header file for empty widget
  3.  */
  4.  
  5. #ifndef _SG_ThumbWheelP_h
  6. #define _SG_ThumbWheelP_h
  7.  
  8. #include <Xm/XmP.h>
  9. #include <Xm/PrimitiveP.h>
  10. #include <Xm/DrawP.h>
  11. #include <Sgm/ThumbWheel.h>
  12.  
  13. typedef struct {
  14.   int make_compiler_happy;
  15. #ifdef __sgi
  16.   caddr_t _SG_vendorExtension;
  17. #endif /* __sgi */
  18. } SgThumbWheelClassPart;
  19.  
  20.  
  21. typedef struct {
  22.   CoreClassPart         core_class;
  23.   XmPrimitiveClassPart  primitive_class;
  24.   SgThumbWheelClassPart thumbWheel_class;
  25. } SgThumbWheelClassRec;
  26.  
  27.  
  28. extern SgThumbWheelClassRec sgThumbWheelClassRec;
  29.  
  30.  
  31. typedef struct {
  32.   /* resources */
  33.   int lower_bound;
  34.   int upper_bound;
  35.   int home_position;
  36.   int angle_range;
  37.   int angle_factor;
  38.   int value;
  39.   unsigned char orientation;
  40.   Boolean animate;
  41.   Boolean show_home_button;
  42.  
  43.   XtCallbackList value_changed_callback;
  44.   XtCallbackList drag_callback;
  45.  
  46.   /* private state */
  47.   Boolean infinite;
  48.   Boolean dragging;
  49.   int drag_begin_value;
  50.   int last_mouse_position;
  51.   Boolean pegged;
  52.   int pegged_mouse_position;
  53.   Dimension viewable_pixels;
  54.   int user_pixels;
  55.   Pixmap pix1;
  56.   Pixmap pix2;
  57.   Pixmap pix3;
  58.   Pixmap pix4;
  59.   Pixmap pix1_hilite;
  60.   Pixmap pix2_hilite;
  61.   Pixmap pix3_hilite;
  62.   Pixmap pix4_hilite;
  63.   Pixmap current_quiet_pixmap; /* this will be equal to one of the others */
  64.   Pixmap current_hilite_pixmap; /* this will be equal to one of the others */
  65.   Boolean wheel_hilite;
  66.  
  67.   Pixmap button_quiet_pixmap;
  68.   Pixmap button_hilite_pixmap;
  69.   Boolean button_hilite;
  70.  
  71.   GC foreground_GC;
  72.   shaderptr shader;
  73.  
  74.   int wheel_x;
  75.   int wheel_y;
  76.   int button_x;
  77.   int button_y;
  78.  
  79.   Boolean home_button_armed;
  80.  
  81. #ifdef __sgi
  82.   caddr_t _SG_vendorExtension;
  83. #endif /* __sgi */
  84. } SgThumbWheelPart;
  85.  
  86.  
  87. typedef struct _SgThumbWheelRec {
  88.   CorePart         core;
  89.   XmPrimitivePart  primitive;
  90.   SgThumbWheelPart thumbWheel;
  91. } SgThumbWheelRec;
  92.  
  93.  
  94. /* DON'T ADD ANYTHING AFTER THIS #ENDIF */
  95. #endif /* _SG_ThumbWheelP_h */
  96.