home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / utils / precognition / include / valuator.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-24  |  943 b   |  50 lines

  1. /* ==========================================================================
  2. **
  3. **                   Valuator.h
  4. **
  5. ** PObject<GraphicObject<Interactor<Valuator
  6. **
  7. ** A Valuator is a virtual class, derrived from class Interactor.
  8. ** Valuators are those interactors which allow the user to input
  9. ** (or select via button interaction) a value.
  10. **
  11. ** Examples; CycleGadgets, IntegerGadgets, StringGadgets
  12. **
  13. ** ©1991 WILLISoft
  14. **
  15. ** ==========================================================================
  16. */
  17.  
  18. #ifndef VALUATOR_H
  19. #define VALUATOR_H
  20.  
  21. #include "Interactor.h"
  22.  
  23.  
  24. typedef Interactor Valuator;
  25.  
  26.  
  27. LONG Value( 
  28.    #ifdef ANSI_HEADERS
  29.                   Valuator *self 
  30.    #endif
  31.           );
  32.    /*
  33.    ** Returns the current value
  34.    */
  35.  
  36.  
  37. LONG SetValue( 
  38.    #ifdef ANSI_HEADERS
  39.                Valuator *self, 
  40.                LONG selection 
  41.    #endif
  42.              );
  43.    /*
  44.    ** Sets the current value, returns the value.
  45.    */
  46.  
  47.  
  48. #endif
  49.  
  50.