home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / coders / jËzyki_programowania / ace_basic / ace / include / intuition / intuitionbase.h < prev    next >
C/C++ Source or Header  |  1977-12-31  |  3KB  |  109 lines

  1. #ifndef INTUITION_INTUITIONBASE_H
  2. #define INTUITION_INTUITIONBASE_H 1
  3. /*
  4. ** intuitionbase.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/01/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for intuitionbase.h
  17. */
  18. #ifndef IntuitionBasePtr
  19. #define IntuitionBasePtr ADDRESS
  20. #endif
  21. /*
  22. ** End of StructPointer defines for intuitionbase.h
  23. */
  24.  
  25.  
  26. #ifndef EXEC_TYPES_H
  27. #include <exec/types.h>
  28. #endif
  29.  
  30. #ifndef EXEC_LIBRARIES_H
  31. #include <exec/libraries.h>
  32. #endif
  33.  
  34. #ifndef INTUITION_INTUITION_H
  35. #include <intuition/intuition.h>
  36. #endif
  37.  
  38.  
  39. #ifndef EXEC_INTERRUPTS_H
  40. #include <exec/interrupts.h>
  41. #endif
  42.  
  43. /* these are the display modes for which we have corresponding parameter
  44.  *  settings in the config arrays
  45.  */
  46. #define DMODECOUNT  &H0002  /* how many modes there are */
  47. #define HIRESPICK   &H0000
  48. #define LOWRESPICK  &H0001
  49.  
  50. #define EVENTMAX 10     /* size of event array */
  51.  
  52. /* these are the system Gadget defines */
  53. #define RESCOUNT    2
  54. #define HIRESGADGET 0
  55. #define LOWRESGADGET    1
  56.  
  57. #define GADGETCOUNT 8
  58. #define UPFRONTGADGET   0
  59. #define DOWNBACKGADGET  1
  60. #define SIZEGADGET  2
  61. #define CLOSEGADGET 3
  62. #define DRAGGADGET  4
  63. #define SUPFRONTGADGET  5
  64. #define SDOWNBACKGADGET 6
  65. #define SDRAGGADGET 7
  66.  
  67. /* ======================================================================== */
  68. /* === IntuitionBase ====================================================== */
  69. /* ======================================================================== */
  70. /*
  71.  * Be sure to protect yourself against someone modifying these data as
  72.  * you look at them.  This is done by calling:
  73.  *
  74.  * lock = LockIBase(0),  which returns a ULONG.  When done call
  75.  * UnlockIBase(lock) where lock is what LockIBase() returned.
  76.  */
  77.  
  78. /* This structure is strictly READ ONLY */
  79. STRUCT IntuitionBase
  80.  
  81.     _Library LibNode 
  82.  
  83.     View ViewLord 
  84.  
  85.     WindowPtr  ActiveWindow 
  86.     ScreenPtr  ActiveScreen 
  87.  
  88.     /* the FirstScreen variable points to the frontmost Screen.  Screens are
  89.      * then maintained in a front to back order using Screen.NextScreen
  90.      */
  91.     ScreenPtr  FirstScreen  /* for linked list of all screens */
  92.  
  93.     LONGINT Flags     /* values are all system private */
  94.     SHORTINT    MouseY 
  95.     SHORTINT   MouseX 
  96.             /* note "backwards" order of these      */
  97.  
  98.     LONGINT Seconds   /* timestamp of most current input event */
  99.     LONGINT Micros    /* timestamp of most current input event */
  100.  
  101.     /* I told you this was private.
  102.      * The data beyond this point has changed,  is changing,  and
  103.      * will continue to change.
  104.      */
  105. END STRUCT 
  106.  
  107. #endif
  108.  
  109.