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

  1. /* ==========================================================================
  2. **
  3. **                             CycleGadget.h
  4. **
  5. ** PObject<GraphicObject<Interactor<Valuator<CycleGadget
  6. **
  7. **
  8. ** ©1991 WILLISoft
  9. **
  10. ** ==========================================================================
  11. */
  12.  
  13. #ifndef CYCLEGADGET_H
  14. #define CYCLEGADGET_H
  15.  
  16.  
  17. #include "BoolGadget.h"
  18. #include "StringList.h"
  19.  
  20. /* PObject<GraphicObject<Interactor<Valuator<BoolGadget<CycleGadget */
  21.  
  22. typedef struct CycleGadget
  23. {
  24.    BoolGadget  bg;
  25.    StringList  sl;
  26.    IntuiText   Format;
  27. } CycleGadget;
  28.  
  29.  
  30. void CycleGadget_Init( 
  31.    #ifdef ANSI_HEADERS
  32.                        CycleGadget *cyclegadget,
  33.                        PIXELS       LeftEdge,
  34.                        PIXELS       TopEdge,
  35.                        PIXELS       Width,
  36.                        pcg_3DPens   Pens,
  37.                        char        *label,
  38.                        char       **Choices 
  39.    #endif
  40.                      );
  41.  
  42.    /* 'Choices is a null terminated array of strings which
  43.    ** define the cycle-gadget choices.  e.g.
  44.    **
  45.    **    char *choices[] = { "this", "that", "the other", NULL };
  46.    **
  47.    ** The NULL terminator is mandatory.
  48.    */
  49.  
  50. #endif
  51.