home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / Includes_and_Autodocs_3.5 / include / gadgets / palette.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-19  |  1.3 KB  |  50 lines

  1. #ifndef GADGETS_PALETTE_H
  2. #define GADGETS_PALETTE_H
  3. /*
  4. **    $VER: palette.h 44.1 (19.10.1999)
  5. **    Includes Release 44.1
  6. **
  7. **  Definitions for the Palette BOOPSI class
  8. **
  9. **    (C) Copyright 1987-1999 Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. /*****************************************************************************/
  14.  
  15. #ifndef REACTION_REACTION_H
  16. #include <reaction/reaction.h>
  17. #endif
  18.  
  19. #ifndef INTUITION_GADGETCLASS_H
  20. #include <intuition/gadgetclass.h>
  21. #endif
  22.  
  23. /*****************************************************************************/
  24.  
  25. /* Additional attributes defined by the Palette class
  26.  */
  27. #define PALETTE_Dummy            (REACTION_Dummy+0x0004000)
  28.  
  29. #define PALETTE_Colour            (PALETTE_Dummy+1)
  30.     /* (UWORD) The value in the gadget.  Defaults to 0. */
  31.  
  32. #define PALETTE_ColourOffset    (PALETTE_Dummy+2)
  33.     /* (UWORD) Maximum number of characters for the numer (including
  34.      * negative sign.  Defaults to 10. */
  35.  
  36. #define PALETTE_ColourTable        (PALETTE_Dummy+3)
  37.     /* (UWORD *) Minimum value for the number. */
  38.  
  39. #define PALETTE_NumColours        (PALETTE_Dummy+4)
  40.     /* (UWORD) Maximum value for the number. */
  41.  
  42. /* American spellings.
  43.  */
  44. #define PALETTE_Color PALETTE_Colour
  45. #define PALETTE_ColorOffset PALETTE_ColourOffset
  46. #define PALETTE_ColorTable PALETTE_ColourTable
  47. #define PALETTE_NumColors PALETTE_NumColours
  48.  
  49. #endif /* GADGETS_PALETTE_H */
  50.