home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Mousebroken 1.0.1 / source / Mousebroken source ƒ / init code / structs.h < prev   
Encoding:
C/C++ Source or Header  |  1994-10-30  |  2.4 KB  |  94 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        structs.h
  4.  
  5. Purpose:    This is the header file for INIT globals and structs.
  6.  
  7.  
  8. Mousebroken -=- your computer isn't truly broken until it's mousebroken
  9. Copyright (C) 1993 Mark Pilgrim
  10.  
  11. This program is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2 of the License, or
  14. (at your option) any later version.
  15.  
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. GNU General Public License for more details.
  20.  
  21. You should have received a copy of the GNU General Public License
  22. along with this program in a file named "GNU General Public License".
  23. If not, write to the Free Software Foundation, 675 Mass Ave,
  24. Cambridge, MA 02139, USA.
  25.  
  26. \**********************************************************************/
  27.  
  28. #pragma once
  29.  
  30. struct QDGlobals
  31. {
  32.     char privates[76];
  33.     long randSeed;
  34.     BitMap screenBits;
  35.     Cursor arrow;
  36.     Pattern dkGray;
  37.     Pattern ltGray;
  38.     Pattern gray;
  39.     Pattern black;
  40.     Pattern white;
  41.     GrafPtr thePort;
  42.     long    end;
  43. };
  44.  
  45. typedef struct QDGlobals QDGlobals;
  46.  
  47. typedef struct PrefStruct
  48. {
  49.     unsigned char    showIcon;                /* Mousebroken shows icon on startup? */
  50.     unsigned char    isOn;                    /* Mousebroken is on? */
  51.     unsigned long    mouseCodePtr;            /* pointer to mouse module in memory */
  52.     unsigned long    mouseVBLPtr;            /* pointer to VBL structure in memory */
  53.     FSSpec            moduleFS;                /* file specification for module */
  54.     int                moduleIndex;            /* dir index in "Mouse Modules" folder */
  55.     int                moduleRefNum;            /* resource file refnum; used internally */
  56.     int                oldRefNum;                /* used internally */
  57.     unsigned long    moduleIconHandle;        /* used internally */
  58.     unsigned char    moduleAlreadyOpen;        /* used internally */
  59.     unsigned char    unused;
  60. } PrefStruct, *PrefPtr, **PrefHandle;
  61.  
  62. enum
  63. {
  64.     kModuleIcon=1,
  65.     kModuleName,
  66.     kModuleCopyright,
  67.     kModuleInfo,
  68.     kButtonLeft,
  69.     kButtonRight,
  70.     kButtonOn,
  71.     kTitleOn,
  72.     kButtonOff,
  73.     kTitleOff,
  74.     kButtonShowIcon,
  75.     kTitleShowIcon
  76. };
  77.  
  78. enum
  79. {
  80.     allsWell=0,
  81.     prefs_allsWell=0,
  82.     prefs_diskReadErr,
  83.     prefs_diskWriteErr,
  84.     prefs_cantOpenPrefsErr,
  85.     prefs_cantCreatePrefsErr,
  86.     prefs_virginErr,
  87.     kNoMemory,
  88.     kCantGetResource,
  89.     kCantFindSystemFolder,
  90.     kCantOpenModuleFolder,
  91.     kNoModules,
  92.     kCantOpenModule
  93. };
  94.