home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / gui / precog2_1.lha / Precognition2_1 / include / Slider.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-27  |  934 b   |  46 lines

  1. /* ==========================================================================
  2. **
  3. **                             Slider.h
  4. **
  5. ** PObject<GraphicObject<Interactor<Valuator<Positioner<Sliders
  6. **
  7. ** Sliders are proportional gadgets.
  8. **
  9. **
  10. ** ©1991 WILLISoft
  11. **
  12. ** ==========================================================================
  13. */
  14.  
  15. #ifndef SLIDER_H
  16. #define SLIDER_H
  17.  
  18. #include "Precognition3D.h"
  19. #include "pcgWindow.h"
  20. #include "EmbossedGadget.h"
  21. #include "Positioner.h"
  22.  
  23. typedef struct SliderMap
  24.    {
  25.       SHORT Min;
  26.       SHORT Max;
  27.       SHORT Pot;
  28.       SHORT Body;
  29.    } SliderMap;
  30.    /* This data type is used to 'map' the desired range of a
  31.    ** a PropGadget to its actual range.  (i.e. Intuition uses
  32.    ** a range of 0..65536.  Usually the application has another
  33.    ** range in mind.
  34.    */
  35.  
  36.  
  37. typedef struct Slider
  38. {
  39.    EmbossedGadget   eg;
  40.    struct PropInfo  Prop;
  41.    WORD             AutoKnob[4];
  42. } Slider;
  43.  
  44.  
  45. #endif
  46.