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

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