home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 1 / crawlyvol1.bin / apps / educatin / typtutor / gemdefs.h < prev    next >
C/C++ Source or Header  |  1989-06-03  |  4KB  |  169 lines

  1. /************************************************************************/
  2. /*    GEMDEFS.H Common GEM definitions and miscellaneous structures.        */
  3. /*        Copyright 1985 Atari Corp.                                        */
  4. /************************************************************************/
  5. #ifndef DL_GEMDEFS
  6. #define DL_GEMDEFS
  7.  
  8. /*    EVENT Manager Definitions                    */
  9.                         /* multi flags        */
  10. #define MU_KEYBD  0x0001    
  11. #define MU_BUTTON 0x0002
  12. #define MU_M1     0x0004
  13. #define MU_M2     0x0008
  14. #define MU_MESAG  0x0010
  15. #define MU_TIMER  0x0020
  16.                         /* keyboard states    */
  17. #define K_RSHIFT 0x0001
  18. #define K_LSHIFT 0x0002
  19. #define K_CTRL   0x0004
  20. #define K_ALT    0x0008
  21.                         /* message values    */
  22. #define MN_SELECTED 10
  23. #define WM_REDRAW   20
  24. #define WM_TOPPED   21
  25. #define WM_CLOSED   22
  26. #define WM_FULLED   23
  27. #define WM_ARROWED  24
  28. #define WM_HSLID    25
  29. #define WM_VSLID    26
  30. #define WM_SIZED    27
  31. #define WM_MOVED    28
  32. #define WM_NEWTOP   29
  33. #define AC_OPEN     40
  34. #define AC_CLOSE    41
  35.  
  36. /*    FORM Manager Definitions                    */
  37.                         /* Form flags        */
  38. #define FMD_START  0
  39. #define FMD_GROW   1
  40. #define FMD_SHRINK 2
  41. #define FMD_FINISH 3
  42.  
  43. /*    RESOURCE Manager Definitions                    */
  44.                         /* data structure types */
  45. #define R_TREE     0
  46. #define R_OBJECT   1
  47. #define R_TEDINFO  2
  48. #define R_ICONBLK  3
  49. #define R_BITBLK   4
  50. #define R_STRING   5        /* gets pointer to free strings    */
  51. #define R_IMAGEDATA 6        /* gets pointer to free images    */
  52. #define R_OBSPEC   7
  53. #define R_TEPTEXT  8        /* sub ptrs in TEDINFO    */
  54. #define R_TEPTMPLT 9
  55. #define R_TEPVALID 10
  56. #define R_IBPMASK  11        /* sub ptrs in ICONBLK    */
  57. #define R_IBPDATA  12
  58. #define R_IBPTEXT  13
  59. #define R_BIPDATA  14        /* sub ptrs in BITBLK    */
  60. #define R_FRSTR    15        /* gets addr of ptr to free strings    */
  61. #define R_FRIMG    16        /* gets addr of ptr to free images    */
  62.  
  63.                         /* used in RSCREATE.C    */
  64. typedef struct rshdr
  65. {
  66.     int        rsh_vrsn;
  67.     int        rsh_object;
  68.     int        rsh_tedinfo;
  69.     int        rsh_iconblk;    /* list of ICONBLKS        */
  70.     int        rsh_bitblk;
  71.     int        rsh_frstr;    
  72.     int        rsh_string;
  73.     int        rsh_imdata;    /* image data            */
  74.     int        rsh_frimg;    
  75.     int        rsh_trindex;
  76.     int        rsh_nobs;    /* counts of various structs    */
  77.     int        rsh_ntree;
  78.     int        rsh_nted;
  79.     int        rsh_nib;
  80.     int        rsh_nbb;
  81.     int        rsh_nstring;
  82.     int        rsh_nimages;
  83.     int        rsh_rssize;    /* total bytes in resource    */
  84. } RSHDR;
  85. #define    F_ATTR    0            /* file attr for dos_create    */
  86.  
  87. /*    WINDOW Manager Definitions.                    */
  88.                         /* Window Attributes    */
  89. #define NAME    0x0001
  90. #define CLOSER  0x0002
  91. #define FULLER  0x0004
  92. #define MOVER   0x0008
  93. #define INFO    0x0010
  94. #define SIZER   0x0020
  95. #define UPARROW 0x0040
  96. #define DNARROW 0x0080
  97. #define VSLIDE  0x0100
  98. #define LFARROW 0x0200
  99. #define RTARROW 0x0400
  100. #define HSLIDE  0x0800
  101.                         /* wind_create flags    */
  102. #define WC_BORDER 0
  103. #define WC_WORK   1
  104.                         /* wind_get flags    */
  105. #define WF_KIND        1
  106. #define WF_NAME        2
  107. #define WF_INFO        3
  108. #define WF_WORKXYWH    4
  109. #define WF_CURRXYWH    5
  110. #define WF_PREVXYWH    6
  111. #define WF_FULLXYWH    7
  112. #define WF_HSLIDE    8
  113. #define WF_VSLIDE    9
  114. #define WF_TOP          10
  115. #define WF_FIRSTXYWH     11
  116. #define WF_NEXTXYWH     12
  117. #define WF_RESVD       13
  118. #define WF_NEWDESK     14
  119. #define WF_HSLSIZE       15
  120. #define WF_VSLSIZE       16
  121. #define WF_SCREEN       17
  122.                         /* update flags        */
  123. #define    END_UPDATE 0
  124. #define    BEG_UPDATE 1
  125. #define    END_MCTRL  2
  126. #define    BEG_MCTRL  3
  127.  
  128. /*    GRAPHICS Manager Definitions                    */
  129.                         /* Mouse Forms        */
  130. #define    ARROW        0
  131. #define    TEXT_CRSR   1
  132. #define    HOURGLASS   2
  133. #define    POINT_HAND  3
  134. #define    FLAT_HAND   4
  135. #define    THIN_CROSS  5
  136. #define    THICK_CROSS 6
  137. #define    OUTLN_CROSS 7
  138. #define    USER_DEF  255
  139. #define M_OFF     256
  140. #define M_ON      257
  141.  
  142. /*    MISCELLANEOUS Structures                    */
  143.                     /* Memory Form Definition Block */
  144. typedef struct fdbstr
  145. {
  146.     long    mp;
  147.     int        fwp;
  148.     int        fh;
  149.     int        fww;
  150.     int        ff;
  151.     int        np;
  152.     int        r1;
  153.     int        r2;
  154.     int        r3;
  155. } MFDB;
  156.                     /* Mouse Form Definition Block */
  157. typedef struct mfstr
  158. {
  159.     int    mf_xhot;
  160.     int    mf_yhot;
  161.     int    mf_nplanes;
  162.     int    mf_fg;
  163.     int    mf_bg;
  164.     int    mf_mask[16];
  165.     int    mf_data[16];
  166. } MFORM;
  167.  
  168. #endif DL_GEMDEFS
  169.