home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / at-inc-bin.lha / os-include / prefs / wbpattern.h < prev    next >
C/C++ Source or Header  |  1993-10-15  |  2KB  |  65 lines

  1. #ifndef PREFS_WBPATTERN_H
  2. #define PREFS_WBPATTERN_H
  3. /*
  4. **    $VER: wbpattern.h 39.4 (11.6.92)
  5. **    Includes Release 40.15
  6. **
  7. **    File format for wbpattern preferences
  8. **
  9. **    (C) Copyright 1991-1993 Commodore-Amiga, Inc.
  10. **    All Rights Reserved
  11. */
  12.  
  13. /*****************************************************************************/
  14.  
  15. #ifndef EXEC_TYPES_H
  16. #include <exec/types.h>
  17. #endif
  18.  
  19. #ifndef LIBRARIES_IFFPARSE_H
  20. #include <libraries/iffparse.h>
  21. #endif
  22.  
  23. /*****************************************************************************/
  24.  
  25. #define ID_PTRN MAKE_ID('P','T','R','N')
  26.  
  27. /*****************************************************************************/
  28.  
  29. struct WBPatternPrefs
  30. {
  31.     ULONG     wbp_Reserved[4];
  32.     UWORD     wbp_Which;            /* Which pattern is it */
  33.     UWORD     wbp_Flags;
  34.     BYTE     wbp_Revision;            /* Must be set to zero */
  35.     BYTE     wbp_Depth;            /* Depth of pattern */
  36.     UWORD     wbp_DataLength;        /* Length of following data */
  37. };
  38.  
  39. /*****************************************************************************/
  40.  
  41. /* constants for WBPatternPrefs.wbp_Which */
  42. #define    WBP_ROOT    0
  43. #define    WBP_DRAWER    1
  44. #define    WBP_SCREEN    2
  45.  
  46. /* wbp_Flags values */
  47. #define    WBPF_PATTERN    0x0001
  48.     /* Data contains a pattern */
  49.  
  50. #define    WBPF_NOREMAP    0x0010
  51.     /* Don't remap the pattern */
  52.  
  53. /*****************************************************************************/
  54.  
  55. #define MAXDEPTH    3    /*  Max depth supported (8 colors) */
  56. #define DEFPATDEPTH    2    /*  Depth of default patterns */
  57.  
  58. /*  Pattern width & height: */
  59. #define PAT_WIDTH    16
  60. #define PAT_HEIGHT    16
  61.  
  62. /*****************************************************************************/
  63.  
  64. #endif /* PREFS_WBPATTERN_H */
  65.