home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d5xx / d599 / stslib.lha / STSLib / GadgetLib.h < prev    next >
C/C++ Source or Header  |  1992-02-01  |  2KB  |  71 lines

  1. /***************************************************************************
  2.  
  3.    Program:    
  4.    File:       GadgetLib.h
  5.    
  6.    Version:    V1.0
  7.    Date:       29.11.91
  8.    Function:   GadgetLib include file
  9.    
  10.    Copyright:  SciTech Software 1991
  11.    Author:     Andrew C. R. Martin
  12.    Address:    SciTech Software
  13.                23, Stag Leys,
  14.                Ashtead,
  15.                Surrey,
  16.                KT21 2TD.
  17.    Phone:      +44 (0372) 275775
  18.    EMail:      UUCP: cbmuk!cbmuka!scitec!amartin
  19.                JANET: andrew@uk.ac.ox.biop
  20.                
  21. ****************************************************************************
  22.  
  23.    This program is copyright. Any copying without the permission of
  24.    SciTech Software is illegal.
  25.  
  26. ****************************************************************************
  27.  
  28.    Description:
  29.    ============
  30.  
  31. ****************************************************************************
  32.  
  33.    Usage:
  34.    ======
  35.  
  36. ****************************************************************************
  37.  
  38.    Revision History:
  39.    =================
  40.  
  41. ***************************************************************************/
  42. #define STS_CHECKYSTEP 13
  43. #define STS_CYCLEYSTEP 14
  44. #define STS_GADGET 0x8000 /* Use this in .GadgetID to show this is ours   */
  45. #define STS_MXGADG 0x4000 /* Use this in .GadgetID to show an MX gadget   */
  46. #define STS_CYCLE  0x2000 /* Use this in .GadgetID to show a cycle gadget */
  47. #define STS_DUMMY  0x1000 /* Use this in .GadgetID to show a dummy gadget */
  48. #define STS_IDMASK 0x0FFF /* Screens out the parts of .GadgetID used by
  49.                              the STS gadget library                       */
  50. #define STS_MAXUNDO  200  /* Size of the string gadget undo buffer        */
  51.  
  52. /**************************************************************************/
  53. /* Structures */
  54. struct STS_Cycle          /* Used internally for cycle gadgets            */
  55. {
  56.    int  current,
  57.         ntext;
  58.    char **text;
  59. };
  60.  
  61. /**************************************************************************/
  62. /* Macros */
  63. #define isSTS(x)   ((x)->GadgetID&STS_GADGET)
  64. #define isCYCLE(x) (((x)->GadgetID & STS_GADGET)&&((x)->GadgetID & STS_CYCLE))
  65. #define isMX(c)    (((c)->GadgetID & STS_GADGET)&&((c)->GadgetID & STS_MXGADG))
  66. #define isDUMMY(c) (((c)->GadgetID & STS_GADGET)&&((c)->GadgetID & STS_DUMMY))
  67.  
  68. /**************************************************************************/
  69. /* Prototypes */
  70. #include "gadgetlib_protos.h"
  71.