home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 432b.lha / EzLib / ezlib.h < prev    next >
C/C++ Source or Header  |  1990-11-10  |  2KB  |  64 lines

  1. /* Header file for use with ez.lib */
  2.  
  3. #define GFX        0x001
  4. #define INTUI        0x002
  5. #define INTUITION   0x002
  6. #define ARP        0x004
  7. #define DFONT        0x008
  8. #define DISKFONT    0x008
  9. #define TRANSLATOR  0x010
  10. #define ICONBASE    0x080
  11. #define REXX        0x100
  12.  
  13. #define MSG(a) (Write(Output(), a, strlen(a)))
  14.  
  15. struct Screen    *makescreen();
  16. struct Window    *makewindow();
  17. struct Window    *createwindow();
  18. struct Gadget    *makeboolgadget();
  19. struct Gadget    *create_boolgadget();
  20. struct BitMap    *getbitmap();
  21. struct TextFont *getfont();
  22. char        *getstring();
  23.  
  24. /* these functions (and closelibs()) should properly be void, however
  25.  * manx 3.6a seems to think I'm redeclaring the function when a function
  26.  * is defined here as void.  As int it works fine....
  27.  */
  28. int killscreen();
  29. int killwindow();
  30. int free_bitmap();
  31. int getyn();
  32. int openlibs();
  33. int closelibs();
  34.  
  35. #define setcolor(screen, num, color) (SetRGB4(&screen->ViewPort, num, (0x0f00&color)>>8, (0x00f0&color)>>4, (0x000f&color) ))
  36. #define BLACK      0x0000
  37. #define WHITE      0x0fff
  38. #define RED      0x0f00
  39. #define GREEN      0x00f0
  40. #define BLUE      0x000f
  41. #define YELLOW      0x0ff0
  42. #define CYAN      0x00ff
  43. #define PINK      0x0f09
  44. #define PURPLE      0x0f0f
  45. #define GREY0      0x0ccc
  46. #define GREY      0x0aaa
  47. #define GREY1      0x0888
  48. #define GREY2      0x0666
  49. #define GREY3      0x0444
  50. #define GOLD      0x0ea1
  51. #define ORANGE      0x0f70
  52. #define INDIGO      0x070e
  53.  
  54. #define initgfx()  (openlibs(GFX))
  55. #define closegfx() (closelibs())
  56.  
  57. #define Print(rp, b) (Text(rp, b, strlen(b)))
  58. #define Line(rp, a, b, c, d) { Move(rp, a, b); Draw(rp, c, d); }
  59. #define Circle(rp, x, y, rad) (DrawEllipse(rp, x, y, rad, rad))
  60.  
  61. /* just a quickie to make calls to makescreen() a little more clear */
  62. #define LORES 0x0000
  63.  
  64.