home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Disk / Directory / struct.h < prev    next >
Encoding:
Text File  |  1993-02-03  |  1.1 KB  |  61 lines  |  [TEXT/KAHL]

  1. //-- windows.h
  2.  
  3. // The various structures used by the drafting program for managing windows.
  4.  
  5.  
  6. #ifndef WINDOWSH
  7. #define WINDOWSH
  8.  
  9.  
  10.  
  11. //-- Structures.
  12.  
  13.  
  14. //-- DirectData
  15.  
  16. // Directory data.
  17.  
  18. struct DirectData {
  19.     short indent;                            /* How far does this indent (in units of 12 pix) */
  20.     char data[42];                            /* Name of this object, and data (in Pascal form) */
  21.     char auxdata[20];                        /* Size of this object (auxdata) */
  22.     char auxdata2[20];                        /* File aux data */
  23. };
  24.  
  25.  
  26. //-- DrawWindow
  27.  
  28. // The windows used for drawing.
  29.  
  30. struct DrawWindow {
  31.     WindowRecord w;
  32.     short inuse;
  33.     
  34.     /* Controls */
  35.     ControlHandle yScroll;                    /* The two scroll bars in this window */
  36.     
  37.     /* Data */
  38.     short state;
  39.     struct DirectData **data;                /* Directory data handle */
  40.     short vRefNum;                            /* VRefNum of this volume */
  41.     char vName[64];                            /* Volume name (in C) */
  42. };
  43.  
  44.  
  45.  
  46.  
  47.  
  48. //-- Constants.
  49.  
  50. #define    MAXWINDOWS            10                /* # of drawing windows that can be opened */
  51. #define WK_PLAN                10                /* Window kind of a drawing window */
  52. #define    WK_CONTROL            11                /* The Control window */
  53.  
  54.  
  55.  
  56.  
  57. //-- Globals.
  58.  
  59. extern struct DrawWindow *drawList;            /* The list of windows to bring up */
  60.  
  61. #endif