home *** CD-ROM | disk | FTP | other *** search
/ The Best of Mecomp Multimedia 2 / MECOMP-CD-II.iso / amiga / grafix / rainbow_system / developer / c_includes.lha / include / libraries / rainbowsystem.h
Encoding:
C/C++ Source or Header  |  1998-04-04  |  3.0 KB  |  125 lines

  1. #ifndef RAINBOWSYSTEM_H
  2. #define RAINBOWSYSTEM_H
  3.  
  4. /*
  5. **      $VER: RainbowSystem.h (4.4.98)
  6. **      Release 2.0
  7. **
  8. **      (C) Copyright 1997-1998 Andrea Latina
  9. **          All Rights Reserved
  10. */
  11.  
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include "exec/types.h"
  15. #endif /* EXEC_TYPES_H */
  16.  
  17. #ifndef EXEC_LIBRARIES_H
  18. #include "exec/libraries.h"
  19. #endif /* EXEC_LIBRARIES_H */
  20.  
  21. #ifndef UTILITY_TAGITEM_H
  22. #include <utility/tagitem.h>
  23. #endif /* UTILITY_TAGITEM_H */
  24.  
  25.  
  26. /*
  27. ** RainbowSystemBase
  28. */
  29.  
  30. struct RainbowSystemBase
  31. {
  32.     struct Library         rs_LibNode;
  33.     APTR                   rs_SegList;
  34. };
  35.  
  36. #define RAINBOWSYSTEM_NAME    "rainbow.library"
  37. #define RAINBOWSYSTEM_VERSION 1L
  38.  
  39.  
  40. /*
  41. ** Errors
  42. */
  43.  
  44. #define NO_ERROR                     0
  45.  
  46. #define NOT_ENOUGH_FREE_PENS        -1      //
  47. #define NO_MEMORY_FOR_TABLES        -2      //   These errors
  48. #define NOT_ENOUGH_DEPTH            -3      //
  49. #define CANT_LOCK_SCREEN            -4      //  are handled by
  50. #define INADEQUATE_SCREEN           -5      //
  51. #define UNKNOWN_ERROR               -6      //  RainbowManager
  52. #define CANNOT_OPEN_DRIVER          -100    //
  53.  
  54. #define RAINBOWMANAGER_ISNT_ACTIVE  -101
  55. #define NOT_ENOUGH_MEMORY           -102
  56.  
  57.  
  58. /*
  59. ** Macros
  60. */
  61.  
  62. #define RGB(r,g,b)      ((r) << 16 | (g) << 8 | (b))
  63.  
  64. #define RGB_RED         RGB(0xFF, 0x00, 0x00)
  65. #define RGB_GREEN       RGB(0x00, 0xFF, 0x00)
  66. #define RGB_BLUE        RGB(0x00, 0x00, 0xFF)
  67. #define RGB_CYAN        RGB(0x00, 0xFF, 0xFF)
  68. #define RGB_MAGENTA     RGB(0xFF, 0x00, 0xFF)
  69. #define RGB_YELLOW      RGB(0xFF, 0xFF, 0x00)
  70. #define RGB_BLACK       RGB(0x00, 0x00, 0x00)
  71. #define RGB_WHITE       RGB(0xFF, 0xFF, 0xFF)
  72.  
  73. #define RGB_NONE        (-1L)
  74.  
  75. #define rs_DrawCircle(obj,x,y,d,r,g,b)     rs_DrawEllipse(obj,x,y,d,d,r,g,b)
  76. #define rs_FillCircle(obj,x,y,d,rgb0,rgb1) rs_FillEllipse(obj,x,y,d,d,rgb0,rgb1)
  77.  
  78.  
  79. /*
  80. ** Tags for rs_About(APTR rainbow struct TagItem *tags )
  81. */
  82.  
  83. #define RSA_TagBase         (TAG_USER)
  84.  
  85. #define RSA_PubScreenName   ((RSA_TagBase)+1)
  86. #define RSA_ScreenTitle     ((RSA_TagBase)+2)
  87.  
  88. #define RSA_PictureName     ((RSA_TagBase)+3)
  89.  
  90. #define RSA_HideLoading     ((RSA_TagBase)+4)
  91.  
  92. #define RSA_Title           ((RSA_TagBase)+5)
  93. #define RSA_TitleAttr       ((RSA_TagBase)+6)
  94. #define RSA_TitleAlign      ((RSA_TagBase)+7)
  95. #define RSA_TitleColor      ((RSA_TagBase)+8)
  96.  
  97. #define RSA_SubTitle        ((RSA_TagBase)+9)
  98. #define RSA_SubTitleAttr    ((RSA_TagBase)+10)
  99. #define RSA_SubTitleAlign   ((RSA_TagBase)+11)
  100. #define RSA_SubTitleColor   ((RSA_TagBase)+12)
  101.  
  102. #define RSA_SubText         ((RSA_TagBase)+13)
  103. #define RSA_SubTextAttr     ((RSA_TagBase)+14)
  104. #define RSA_SubTextAlign    ((RSA_TagBase)+15)
  105. #define RSA_SubTextColor    ((RSA_TagBase)+16)
  106.  
  107. #define RSA_BorderX         ((RSA_TagBase)+17)
  108. #define RSA_BorderY         ((RSA_TagBase)+18)
  109.  
  110. #define RSA_WaitSecs        ((RSA_TagBase)+19)
  111. #define RSA_WaitForClick    ((RSA_TagBase)+20)
  112. #define RSA_Persistent      ((RSA_TagBase)+21)
  113.  
  114.  
  115. /*
  116. ** Text alignment
  117. */
  118.  
  119. #define TEXT_LEFT   0
  120. #define TEXT_RIGHT  1
  121. #define TEXT_CENTER 2
  122.  
  123.  
  124. #endif  /* RAINBOWSYSTEM_H */
  125.