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 / libraries / resource.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-19  |  781 b   |  31 lines

  1. #ifndef LIBRARIES_RESOURCE_H
  2. #define LIBRARIES_RESOURCE_H
  3. /*
  4. **    $VER: resource.h 44.1 (19.10.1999)
  5. **    Includes Release 44.1
  6. **
  7. **    resource.library definitions
  8. **
  9. **    (C) Copyright 1987-1999 Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16.  
  17. typedef APTR RESOURCEFILE;
  18. typedef ULONG RESOURCEID;
  19.  
  20. /* A gadget ID (Tag GA_ID) may contain the ID and the group ID
  21.    ored together. The following definitions must be used to extract
  22.    the original gadget ID (1024 different IDs are possible) and the
  23.    group id (63 different group IDs are possible).
  24. */
  25. #define RL_GADGETMASK 0x03FF
  26. #define RL_GROUPMASK  0xFC00
  27. #define RL_GADGETID(x) ((x) & RL_GADGETMASK)
  28. #define RL_GROUPID(x) (((x) & RL_GROUPMASK) >> 10)
  29.  
  30. #endif /* LIBRARIES_RESOURCE_H */
  31.