home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / luschsrc.sit / applic.h < prev    next >
Text File  |  1990-05-23  |  2KB  |  103 lines

  1. /********************************************************************************
  2.  *    applic.h
  3.  *
  4.  *    THINK C 4.0 Application Shell Header
  5.  *
  6.  *    Written by Paco Xander Nathan
  7.  *    ⌐1990, Motorola Inc.  Public domain source code.
  8.  ********************************************************************************/
  9.  
  10. #define _H_applic
  11.  
  12.  
  13. #include <MacTypes.h>
  14. #include <QuickDraw.h>
  15. #include <WindowMgr.h>
  16. #include <EventMgr.h>
  17. #include <pascal.h>
  18. #include <Color.h>
  19.  
  20.  
  21. #define DEVELOPING
  22.  
  23. #ifndef PROTOTYPES
  24. #define PROTOTYPES
  25. #endif
  26.  
  27. #ifndef BYTE
  28. #define BYTE            char
  29. #endif
  30.  
  31. #ifndef UBYTE
  32. #define UBYTE            unsigned char
  33. #endif
  34.  
  35. #ifndef WORD
  36. #define WORD            short
  37. #endif
  38.  
  39. #ifndef UWORD
  40. #define UWORD            unsigned short
  41. #endif
  42.  
  43. #ifndef LONG
  44. #define LONG            long
  45. #endif
  46.  
  47. #ifndef ULONG
  48. #define ULONG            unsigned long
  49. #endif
  50.  
  51. #ifndef NULL
  52. #define NULL            0L
  53. #endif
  54.  
  55.  
  56. #define    FONTNUM            systemFont
  57. #define    FONTSIZE        12
  58. #define RSRCBASE        128
  59. #define SBAR_WIDTH        16
  60.  
  61. #define BotRight(r)        (* (Point *) &(r).bottom)
  62. #define TopLeft(r)        (* (Point *) &(r).top)
  63. #define Linear(x,y,z)    ((x <= y) && (y <= z))
  64. #define Max(a,b)        ((a) > (b) ? (a) : (b))
  65. #define Min(a,b)        ((a) < (b) ? (a) : (b))
  66.  
  67.  
  68. typedef struct {
  69.     short frames;            /* number of cursor frames */
  70.     short which;            /* used as framce counter */
  71.     CursHandle curs[1];        /* can actually become any number */
  72. } acur, *acurPtr, **acurHandle;
  73.  
  74.  
  75. typedef struct {
  76.     Boolean hasWNE;
  77.     Boolean hasSound;
  78.     Boolean hasColor;
  79.     Boolean inBackground;
  80. } MachineConfig;
  81.  
  82.  
  83. /* External Data Structures
  84.  */
  85. extern acurHandle
  86.     curList;
  87.  
  88. extern SysEnvRec
  89.     theWorld;
  90.  
  91. extern MachineConfig
  92.     laMachine;
  93.  
  94.  
  95. /* External Function Prototypes
  96.  */
  97. #ifdef PROTOTYPES
  98. void ApplSpinCurs (Boolean reset);
  99. Boolean ApplAbort (void);
  100. void ApplTask (void);
  101. void ApplQuit (void);
  102. #endif
  103.